Some religions stand against gambling and do not give freedom to their members to go to the casino or perform any form of gambling. But some did and gave freedom to their members.
Whether it was their belief or not, and whatever their reasons, it's up to the members to follow the order or leave. As an individual, probably we know what is right and what is wrong, and also we know that gambling is not a wrong thing unless we lose control of ourselves.
It is not the gambling itself that makes it bad but the person who gambles wrongly.
Some religions prohibit gambling because they are afraid that their people will fall into misery because of gambling, this can be understood that someone can lose control and follow his ambition in gambling which will make someone lose a lot of money in gambling which results in poverty quickly, so on that thought some religions prohibit their people from gambling because they are worried about the impact.
Then there are some religions that allow it because they are not so afraid of their people losing control because maybe they are equipped with other beliefs in living their lives, but I am quite sure that teaching must have good and bad in every religion and they have their own way of anticipating things in life, such as teaching how to manage themselves and life principles that can bring peace in life.
But it would indeed be very difficult if for someone who likes to gamble but they are stopped by their teachings because there is a ban, it will be a dilemmatic choice for people in such situations.
Still, this will be blamed if your teachings prohibit it, but if your teachings do not prohibit it then you are the one who is wrong.
A mind journey, really. Religions that forbid gambling? It goes beyond money. Much deeper. Preventing loss and addiction is the goal. Protecting the flock, guy. They say, "This might ruin your life, family, and community. Will lead you clear." A top-down control mechanism, pure and basic. But...
...what if, instead of just banning it, they taught people how to gamble responsibly? How about "This is the agreement. Gambling risks. But you can handle it if you know how. Set smart restrictions." That seems more empowered. A more modern approach?
Religions that don't ban gambling are distinct. They're not suggesting gambling is harmless, but they trust their followers to decide. Saying, "You're grown. You know the risks. Living is your own responsibility." It's a new concept and faith-individual interaction. It's more independent, libertarian
There are so many reasons why it is forbidden, it is like what you said it is much deeper than what we know, maybe we are not experts in religion, so discussing this without like people who do not understand how it works and how the prohibition is so harsh, maybe we will be more assertive if we understand thoroughly about how religions strictly prohibit gambling, prohibit simply and some do not prohibit at all, maybe we need to learn more about the concept of thought and belief.
Even if you think you can gamble responsibly, a religion that strictly prohibits it will not change its teachings because it can teach its people to be more responsible, so it is allowed to gamble, I don't think it is that simple to interpret all these things.
Yes, I also cannot intervene in the prohibition, because it does have the basis of each belief here, to be precise, someone if he is more convinced of his teachings then he should adjust it to himself, but why do many people also violate it, it goes back to what is called sin and what is called belief, this is very complicated to explain.