The countries that prohibit gambling has a reason for doing that, it might be religious reasons just like the Muslim countries not permitting it and teaching them gambling education will be of no use because the government wants them to have nothing to do with gambling because gambling can be very addictive when done wrongly.
In several Muslim countries it is certain that there will be a ban because of religion and also because of other things, in my country almost the majority of Muslims are so large that my country prohibits gambling, many ISPs block gambling sites and there are also ISPs that don't block them, actually I have never felt that It's difficult to gamble and use a VPN, I prefer to use an ISP that doesn't block gambling.
Actually, gambling cannot be stopped because every gambler always has a way to access it using VPN and the method I use, even though it is prohibited, my country does not punish gamblers and players, except for influencers who promote gambling, usually they will be prosecuted according to the law. Moreover, gambling has a bad effect on the nation's future generations or minors, maybe that is also one of the reasons why gambling is illegal in my country.