Yeah, they're not allowed to participate and enter the gambling premises. Whether it's cockfighting or any type of gambling activity, it's part of the public official's oath that they shouldn't engage in any type of gambling activity or else, when they're reported, they'll take a sanction.
That's for sure but it can't be stopped if there are police officers that are still gambling no matter what the rules and oath they've taken, if they're a gambler, they'll always be a gambler.
Those kind of rules are incredibly difficult to enforce as it is not as if those which due to their profession cannot gamble will actually tell everyone they are doing it, another example of this are athletes which are not supposed to gamble on matches in which they participate, with some leagues asking to not even make any kind of bet on the league or the sport at all, and yet we get to know many examples of this over the years, and those are only the ones which are caught as most likely there are many athletes which break the rules and we never find out about it.
It's part of their oath and I think that they have to accept it but we're also sure that many of them break that rule and oath that they've promised.
I also a lot of those officials that have been involved in gambling and mainly in cockfighting because it's one of the most popular type of gambling in here.
In some gambling houses, I've seen that there's a poster that they're not allowing anyone that works in the government to enter and to gamble.
Government employees aren't really allowed in most casino houses because of their line of work. Even Government officials are prohibited in most places that involve gambling and other sorts of activity that might be associated to such. This is to maintain their reputation clean. They also took an oath before sitting in the position to actually prioritize the public welfare instead of their own interest. Hence, they must abide by it. It's improper to see them gambling because the people might think they are not doing their job and they possibly are using the citizens' tax for their vices.
Reasons such as maintaining the reputation and posing to be a good role model to the constituents are enough reasons for them not to engage in gambling for whatever reasons they might have if they want to. It's a form of self-respect and respect to the people who trusted and elected you as well as to show them that your intention is to serve, and not any other else.