That's what i'm doing currently. I prioritize the expenses before thinking about the funds that I will be using to gamble. When there's a money left, then I can play, otherwise I have to refrain myself. Because it's a must to know your priorities before thinking about gambling.
The thought that it's not easy to win help me to limit my gambling activity. Because this can hinder your eagerness to play since you're already aware of the possible outcome. However if you have high hopes and can be easily tempted, it will be hard to stay away in gambling especially if you already experience a decent win.
Well done, this is the right and correct spirit to do things.
Let's face it, we are all human, i also love spending money on things i like. i have to hold back otherwise i would go bankrupt in no time.
The point is that we are adults and we have to behave as such.