Regular budget, spread over time not just one blow out session. Regular timing, start and finish known times before you bet is the ideal framework to stop yourself spiralling out of control with either factor of money or time.
Your time is valuable also so that should not be given away easily either, plus tiredness can promote losses so avoid the lead up to a mistake by never taking that path.
Diversification and discipline are keys to having a good time. I agree with the fact that tired people are usually those who give in to their emotions while good or bad things are happening.
Yes, if you have that kind of plans you'll avoid this kind of emotions, just make sure that you plan ahead and have that good diversion of your time, its needed to make that hard stop when you feel that you are no longer in control of your emotion, most of the time when you are in the losing side, instead of accepting the outcome, you'll force yourself to push for more and instead of losing smaller amount of money you soon lose a large one, amount that you are not willing to let go, for sure lots of regrets that will be added up after losing your bets.