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.
In this situation my recommendation is to never get back to gambling because you will quickly get back to your old habits and you will lose self control again. Even tough for now you probably think you can control yourself once you start gambling again in your mind the same kind of feelings will be triggered and your money will be lost again. If you were able to stop now then end this here and forget about gambling.