Gambling is a kind of addiction, if you want to stay away from it then you should spend time with your friend and family. spend most of your time at places from where you can't do any kind of gambling.Playing games and watching movies also can help you to change you habbit of gambling.
I think if your addicted to gambling your going to spend time to a rehabilitation center and then your family will go and have a bonding moment with you there, because you can't control yourself when your addicted you can't really stop it all by your self you will need a guidance and love of your family.
It is hard to stay away from gambling, because you will get easily addicted to it and that is the bad thing of gambling people have to know that they must stop with it.
Otherwise they are losing to much money and that will be bad for yourself so the best thing is to stop and find some other things that you like to do that will also save money.
That is what I have said, I think that people that are already addicted to gambling will get a hard time taking the addiction off because it is in their system now, and to make it stop a guidance of a psychiatrist is needed and a rehab facility is indeed the way to treat this kind of addiction.