When gambling, always know your limit. Even when you are winning, always know when to stop, or you will lose everything you have won back to gambling. You should know that your winning streak can’t continue when gambling, losses will definitely set in.
Naive and curious gamblers at most find it challenging to press the quit button. The drive to hit their goals and intentions won't let them do it, as they were accustomed to achieving enough wins before leaving the game. Assuming they had seen a significant win, their decisions wouldn't be stiffened to stay in the game. The casino also issues fewer winning chances to ensure naive players are vulnerable to making the right decision.
It's totally natural to fall into this little trap so to speak, but what's really important is to not only get out of it but to learn how to see it from afar in the first place. That way, everybody will be happy.