Can a near win boost my interest to gamble more? Yes, it can, but should it? No, it shouldn't. This is because at the point where you discover you almost won, there are a lot of emotions, and trying to gamble more almost immediately because you almost won is a wrong choice; it is you making decisions based on emotions.
If, as a gambler, you are deciding to gamble again, it should not be because you almost won before, but for entertainment as expected.
Winning, losing, or even a near win, theses are all emotions you are expected to quickly shake off.