Not strictly illegal in most jurisdictions, but strictly prohibited by Microsoft.
Keep gaming and gambling separate. Use Xbox for games, regulated platforms for wagering.