This is correct; the feeling is always there in almost every gambler. You have to feel it almost all the time. You have near misses, but your ability to control yourself is what will determine the decision that you will take after your last bet, which led to that loss.
Some gamblers are still unable to control themselves after such moments, while most of us have seen it and have already concluded that that's how the system is designed to be. You almost win (which some will say there is no such thing as almost winning), and you will want to try your luck on the next bet, which the outcome will also still turn out to be the same.
Everyone knows it is impossible to beat the casino. But a small victory can still be a victory if you do not give in to the temptation to keep playing after big losses or on a bad day when you have already lost enough. Players will come back to play again but it is important to do it wisely.
You should always control your emotions and always manage the budget you are willing to spend. It is not necessary to keep playing until your entire deposit is gone, you can set a daily budget for yourself. And the ability to control yourself will already be a victory, a victory over yourself.