There is a saying "your environment influences you", it happens in most cases but it does not 100% true because it will always depending on how we control ourselves.
It is possible to not become gambler although we are working on a casino, it depends on what is our main purpose why do we work on the casino.
Lets say our main purpose is to have good income from the job only, just stick/focus on it and keep it on our mind as hard as possible.
No doubt that temptations will come sooner or later especially when we see some people win huge amount of money then we start thinking to be as lucky as them.
This is the hard work for us, to control ourselves from those temptations, once we can do it then we will not be influenced/affected.
The meaning of the proverb above is very appropriate that we cannot avoid something from the influence of the environment from the workplace, even though we have committed never to gamble at work but the influence of other people who are gambling to win will trigger your desire to gamble small betting sessions trying to win like other gamblers, if you can not control the control of the temptation it will worsen your mind to always use the results of work income only to gamble. There are steps to motivate you to avoid gambling that you have to busy yourself to work without paying attention to other people who gamble and you should know every gambler has lost a lot of money in gambling and they never win above the amount of losses that have been lost in gambling.