The best preventative for gambling is to study statistics.
(Yes ... if you’re REALLY good, you can beat Vegas at blackjack ... but if you start to succeed, Vegas will beat you.)
Or roulette, which has been proved to be physically predictable.
One of my favorite books.
https://en.wikipedia.org/wiki/The_Eudaemonic_Pie
I was in Vegas a few months ago, but only to visit my Air Force officer son, who was stationed there. I didn’t gamble at all, but I did see two Golden Knights games at T Mobile Arena. It has the absolute LONGEST escalator I have ever seen.