Gambling is an addiction on the other hand trading is like gambling but there is no fear in trading. Because there is very little chance of losing all the money by trading. But those who are addicted to gambling have a little more risk because all the money is at risk during gambling. I am a gambler. And trading finds many differences between the two so I think both have risks.
Gambling has two broad types in it. EV+ where your skills matter more and EV- where luck is the only thing that matters. People tend to play the latter more than the former because they are easy to start and give you the quick kick without you having to learn about it. Trading if done as spot trading is an EV+ game while any other mode of trading is EV- and this more risky.
So now you can compare the two better and make an informed decision which ones to get into. Money is at risk always but the quantum of risk is lower in spot trading.
I know several gamblers who ended up taking part in trading, even though they were beginners and it was recommended to trade spot. but more of them are more interested in futures trading. Maybe because they are used to gambling on luck, they see future trading as part of maximizing their luck rather than their skills.
Some people call trading without skills and knowledge the same as gambling. Maybe that's true because they place trading positions like placing bets in a casino.