If you feel you have a potential problem with gambling it is best to just walk away it is very hard not to let greed take over and keep searching for that big win. I don't know why we are never happy with a win that makes us want to put it all back and more all in the hope that we get a big win.
We would probably gamble that as well. Sometimes it is just something to fill the time but have to watch that it doesn't become a big problem and deal with it before it does.
I agree that it is better to avoid something that we have difficulty in controlling than facing them and lose to the game. As the saying, "prevention is better than cure" so if we find ourselves having problem controlling our greed, it would be better to avoid things that will trigger our greed such as gambling games as an example.
I think if you're the smart person, you will know you're suitable for gambling or not, avoid it is the best way to keep the loss away. So potiental or not , you should stay away from it if you're not fit with it at the start.