Indeed, this must be done immediately if he is aware, but it is very difficult if someone is addicted, he will gamble continuously without thinking about the losses he will receive, he thinks he is only looking for victory and pleasure within himself. I agree with you that we should not imitate the behavior of gamblers like that because what they do is very wrong, and of course their money will run out if it is not controlled properly and they will regret it after the money runs out and maybe they will get stressed and stop gambling.
That's true because when he is still addicted, he will not be able to see the opportunity to reduce his gambling activities, let alone realize that he has gone too far in gambling. Maybe he just keeps thinking about how to win, especially if he has found comfort in gambling so he doesn't think about stopping gambling. By having self-control, we can learn continuously so that we don't become a gambler who is addicted to gambling, let alone spending a lot of money on gambling. We have other life needs that require money so we need to allocate the money to these things instead of spending the money on gambling.
If we can't stop ourselves while we're we gambling. It's best to realize it later that we need to take some break and check ourselves if we're still doing it correctly.
For the better, maybe we need to take a break by stopping the gambling habit for a few days or weeks so that we don't think about gambling. By resting, we can do other things that are more useful.
The thing when we want to stop but can't control ourselves is we become the other person like what we don't know who we are. This happens when we're losing and even if we want to stop, it just can't happen. Big realization should come to those gamblers that can't do it.
When we lose, we can stop the game to rest and not gamble again. Instead of losing more money, we should secure the money and continue gambling another day so that we will not be frustrated that day.