One tip is to try other activities besides gambling, enjoy sports (without gambling), read, dance, and other forms of entertainment.
The problem is the propensity for addiction. Some people easily become addicted to something; it's physiological, not psychological. In this case, it's harder to avoid addiction without avoiding gambling. For these types of people, it's best not to do it.