In any case, you should always try to resist addictions, even if they are not only related to gambling. Almost everyone understands this, but they do nothing about it. For example, I realized that doing sports helps me fight and be more disciplined, and I do not make excuses for myself, because a clear schedule is also important. I will never believe that a person will not find an interesting activity for himself, it can be tennis or even chess. It distracts us, allows us to look at things in life and gambling from a different angle. I am not going to stop completely, but I have made it so that gambling takes up a very small part of my life and does not affect my wallet. I am just interested in watching matches and making bets, analyzing them and controlling the risks.
In my opinion, to resist temptation, you have to give in to temptation but with awareness.
We know we can't resist, avoiding playing doesn't help, in fact it makes you want to play more.
Instead, playing in moderation and without exaggerating can satisfy your appetite.
Sorry but I will have to disagree with you, one can't resist temptation by giving in to it, you resist temptation by simply choosing not to fall for it or into it.
When you decide not to gamble anymore, it's in your hands to choose to continue gambling or decide not to anymore, what you keep doing, you hardly will desist from, and when you have not really made up your mind to quit doing something, rest assured you will easily fall into the temptation to keep doing it.
So the long and short of this all is that, falling back to the temptation to gamble does not make you quit if you want to, and you need to make a decision and apply the required will-power to stand by what ever you decide, this is how to resist temptation.