Well, I myself experienced it where I spent a lot of money in one night, making me realize that I was addicted to gambling, but with that incident I finally realized and limited the gambling that I did, it was because of the strong intention and determination in myself. It is true what you said, gambling addiction can occur when we experience defeat or victory, the exact thing is more dependent on ourselves who have a mindset like what in viewing gambling.
Well when we have experiences like the one you had it helps us wake up from what the game can include us in, which is a cycle of constant losses and that's not good, when we lose money it hurts us, let's say no, but it hurts, so that helped you learn the negative effects we have on ourselves when we don't control our money, it doesn't matter that we're not parents , we must be responsible with ourselves and determine what's best for us and currently we must have money to solve anything, because money is for everything.