Basically if you want to not lose money gambling you need to either never gamble, or stop gambling once you have won more than what you have gambled so far.
The key reason that triggered one to either continue betting or stop permanently is profits and loss. It demonstrates the fundamental requirements of gambling; earning more than expected will only bring forth the quality greed, and I would not welcome losses on my bet games. I'd rather stop than keep gambling since it will never cease unless we make a firm decision to stop. Our minds are wired in such a way that we become addicted to whatever activities provide us with food. Gambling without setting daily limits will result in huge losses. Gambling is not a viable strategy for making extra cash.
It's a popular saying among hopeless gambling addicts that the worst thing that happened to them was their first win, so that's a lot of truth to what you wrote.
Then again, if you are aware how human brains operate and what causes addictions and degenerate behaviour - then it's way easier to keep your gambling activities under control, i.e. don't gamble for entertainment and only consider it when you spot an opportunity where the edge is on your side.