It's no joke that some people so vulnerable to addiction and once they just step into the gambling process, they don't take long and they are already addicted. Once you notice the kind of person you are and you know you can't hold back your emotions towards gambling and losses, then stay away, that's also a solution.
Agreed, not everybody is good with handling emotions that involves money, as soon as they're given the opportunity to make more money, they become obsessed with that activity that it becomes a problem for them instead of being the reason behind their wealth. Being greedy isn't good hence as soon you noticed that you aren't good with handling pressure, you don't have to be gambling or even though you're gambling, you shouldn't be doing excessively. The solution to gambling addiction is stopping but many addicts won't what to stop hence the next solution should be reducing the amount of time they spend gambling and if they can do this, it'll help them a little bit.