Limiting your exposure is crucial. Set the amount and stick to it. For example if you go to physical casino, take $100 in cash with you and leave credit cards at home. Everything else is just a matter of entertainment.
Of course if you gamble away $100 every day that might be a different problem - addiction.
Having exact amount is really helpful and thats a perfect example of being responsible gambler meaning you have a discipline and may prevent to become addicted
We have known those gamblers that has no restrictions when playing and they all end up losing and some turns being bankrupt.
So yes discipline is the best weapon to battle gambling addictions and losing credibilitys because of this bad habits Ive become a victim