Don't chase your near misses nor your luck with gambling. The result will not do good or make you feel good in the long run. This is my personal experience and so I've learned now to avoid or get rid with this gambling urge. Either you fall on that and commit bigger losses, or you stop gambling for a while until you recover your sanity with gambling.
How about not feeling too bad about how the result of the game turns out to be. Because from what I have also experienced, sometimes we feel bad about the outcome and thinks that we can change our mood by going aggressive which could eventually change the course of outcome in successive bets but eventually it ends badly as chasing a loss does. In both situations we end in a more loss than we initially did. So it's always good to just overlook bad results whether a bear miss or whatever.