I understand and i somewhat experience this situation and now i tend to stay away from casino because i dont have self-control. I learned to accept losses because chasing it will only lead me to more losses which will sink into me when i spent all my money.
Good to know that you know this and you have decided to quit gambling. You can develop the skills and self control and then again resume the gambling. Gambling will surely eat your money and make you sad if you do not play sensibly.