You can hide the fact that you gamble from your children because they are immature, but do not hide the information that there is something called gambling to them because if you hide it, they will find out from another person or another means and that can be more dangerous. Tell them about gambling and give them an orientation of the dangers involved with it. Your children can still be non gamblers if even if you an irresponsible gambling.
I have realized that most of the time, it is not a parent's advice that causes a person to be well-behaved, but rather the advice the person gives himself. Even if you warn a child about the dangers of gambling, the child will still gamble if he wants to. It should be noted that a child's behavior is influenced not only by his parents but also by his peers and the things he sees.
For example, some children have been told not to smoke because it is bad, and even with the inscription "smokers are liable to die young," they continue to smoke and have even become chain smokers, despite parental warnings. Similarly, some children were warned about the risks associated with premarital sex. Despite this, they continue to indulge.
This demonstrates that humans are more concerned with doing what they want and refraining from doing things that do not suit them, rather than not doing because they were advised or shown the dangers of doing them.