We should never do anything in front of our children that is very risky. We all know how risky gambling is, especially the harmful effects of gambling on children. If we start gambling in front of our children, it will not take long for our children to become addicted to gambling and it will not take long for their lives to be ruined. At some point, they will sell their assets to finance this gambling or get involved in immoral activities like stealing.
People do risky activities in front of children all the time, and it does not cause children problems globally. Gambling is risky, but hunting, fishing, cooking in some way is also risky, however parents prefer to do that in front of children and teach them those activities. Saw this previously on this forum "driving is allowed from 16-18 years, its a risky activity, but adults do that in front of children all the time". If I follow your logic, then driving with a child to show him how to use BB gun, then this parent is creating a murderer who will not only shoot people, but also run over by car.
The problem with children and gambling is that parents dont tell and teach them problems gambling can cause if do it usuriously, uncontrolled and if children are not aware of money management. Solve this points and gambling would become harmless for children.