You made a bad choice when it turns out you're losing everything you made from the previous day of you gambling. You should have taken profits and not put back everything you made from your previous trade. There's no guarantee when you're gambling because gambling can turn out the way you didn't expect. Your luck the previous day shouldn't be use as a measurement if you're going to get lucky the next day too. When gambling, the chances of you losing is always greater than the chances of you winning hence it should always be at the back of your mind that you're going to lose more than you're winning hence you should be prepared at every chance if you gamble that you don't have to use up all the capitals that you have.
The lesson from all this is that when we win a bet we should not be greedy, we should be consistent people in taking the profits and enjoying them, sometimes emotions and impulses make us make mistakes of this style and that is not the idea, we should be calmer people and not conformist but grateful, after a good effort it is healthy to withdraw profits if there was luck.