Maybe office work with less distraction? You can't be working on a machine and start thinking about gambling, you can't be an accountant and start gambling at work, distraction can affect your work, you can lose a hand or do the wrong calculations, I won't advice anyone to gamble at work unless the activities are less tasking, like they have a lot of time to fool around, I won't do it though, because I don't like losing the sense of my environment, I will like to gamble in my room right on my bed.
You should also do this if the business is yours, don't do it if you are working under a boss, you are simply inviting your sack letter slowly, if you have haters among the workers they can burst your ass using your gambling activities.
It is true that gambling at work, especially in the office, will definitely affect your mind because your mind is not only focused on gambling but also remains focused on your work. This is not recommended if someone works under pressure because it is better not to do things that are In the end it's detrimental to yourself. Yes, it's better to gamble when you get home and do it in your room so that you are free to do it and more relaxed, especially when you can focus on gambling so you can get the opportunity to make a profit. If you do it at the office, it's not impossible that you won't be able to get this opportunity because you can't focus completely.
If you have your own business, it's up to you whether you want to gamble or not because you are the boss, but if you work as an employee, it's better to obey the rules that are already available, namely working hours, we have to keep working, not play games. And it's true, as you said, when we work as employees, there will definitely be people who like and don't like it. If there are people who don't like us and we make mistakes, then that person will reported it to the boss who can ultimately fire us, so don't ever gamble when you're work.