I agree with your method, if you give rehabilitation sanctions or stay away from your beloved family (prison) then gamblers will be deterred and want to stop their gambling addiction, it sounds very scary, but nevertheless I think that is the only best step.
it sounds scary and there are still methods that can be used in a good way, actually the problem of addicts is only in their bad habits, therefore it is difficult to stop the bad habit of gambling quickly, it requires treatment and a process that takes a long time, the same as his process Becoming an addict is not instant, it definitely takes a long time, he continues to gamble and eventually becomes an addict.
An addict will recover by himself when he starts to feel like he has lost everything that is valuable to him, for example his family, home and everything he has, when he is at his lowest, I am sure he will realize that and contact someone again to ask for help so that he can recover, but there are also those who don't care about life anymore then commit suicide, but it all depends on the level of addiction, because it is difficult to change people's habits quickly, it takes time to guide them and the most correct thing is to let them then when they come for help, slowly teach them to change their patterns he thought that gambling would not make him rich, let alone give him wealth. gambling is just for fun, nothing more, I'm sure with that mindset he will slowly control himself for the better.