Some of the things that makes children grow up with wrong knowledge is because their parents kept away information that they needed to know while growing up because they are afraid that if this children have an idea about what they kept away from them that they may start doing those things without their parents awareness but the best way to make a child stay away from a bad habit is to teach the child the basic necessity they need to know and the consequences that surrounds it If the choose to get involved because when you do that as a parent, you have already given the child the knowledge of the dangers involved so even if they are introduced to those things by others outside it will be difficult for them to take part in it.
Not letting our children know that we are gamblers doesn't mean we should keep them away from knowing about the repercussions if they choose to gamble.
I basically think like this as well, there is a difference between teaching a kid how to gamble, a very irresponsible thing to do, and teaching them how gambling works and why it is not a good idea for them to participate in it, this way in the case one of their peers tried to introduce them to that world, they will be prepared to take a responsible choice and stay away from it, unlike what happens to those that are kept ignorant about the dangers of gambling at such an early age and decide to try it because the rest of their friends are willing to do it.