Some of the people who have been arrested today are being accused of gambling on the NBA and specifically on themselves, which will get you banned for life from the NBA.
In the Terry Rozier case, legal sports books alerted authorities about suspicious bets being placed on play prop bets relating to Terry Rozier, the FBI went back and looked at one game that I heard about where Rozier pulled himself out of a game with an ankle injury, the person with all the suspicious bets cashed them all in.
Using legal sports books by professional athletes to bet on themselves or their team is illegal and will get you banned from the sport.
You can get banned from a sport for something that is totally legal. An NBA player betting on NBA games might get him banished from the NBA, but that doesn’t mean it’s a crime.