Stopping at the right time or even at any time is not that easy once someone has developed the habit to gamble on daily basis. It just sounds easy but practical is at a whole different level. Gambling has an addictive nature due to the suspense, thrill, fear and money expectation it involves. The easy way to give up gambling does not exist. A person should keep this fact in his mind.
You need to understand that most people who go to the casino aren't gambling addicts.
And it's not only gambling where it's difficult to quit. Look at the Bitcoin speculation section and look at how many people over traded on margin and lost all their Bitcoin. Or the people who could of sold BTC at $20K but didn't and are now either sitting at break even or at a loss.
Whenever there is money involved, it messes with people's judegement and they all make irrational decisions.
Apparently, there are some people who visit casinos just for the sake of having fun and those who are addicts were just those who started with looking for things where they are not supposed to look for it, as you will hear some people even on this forum say they are looking for how to make PROFIT in gambling like the casino is their forefathers business that was transferred to them.
However, when relating it to trading, it is about the same thing as gambling when you do not have strategy and not just trading. As long as you do not have knowledge in something to be able to do it well, then you are gambling, but gambling itself in its entirety is a game of luck.