I have found that if I gamble, I need to set rules and stick to them. For example, I have only certain games that I will play and I limit how much I'm allowed to bet. Also, after a predetermined amount of gain, I have to stop and after a predetermined amount of loss I have to stop. It helps to have some rules to follow.