First I draw a plan of how much I am willing to risk for any bet:
I so much believe everything starts with a plan. To avoid been carried away by my loss or urge of trying more chances I first plan how much I'm willing to risk and if it goes I pause to try again when next I have made new budgets.
This is the most important step imo. If you can't make a budget for gambling, then it means you are ready to risk everything you got. When you risk everything you got, sooner or later you will lose everything you got. It doesn't matter if you win at some point, you will keep playing because you'll think why not win more? then you will lose your winnings first then you will lose your savings.
If you make a budget first though, that won't happen to you.