I think you misunderstood what @STT has said, he didn't mean those police bribing gambling games to protect them in exchange, though there are something like but only for illegal gambling, just like what you have said, but @STT were trying to say is that the Government gives permit to certain gambling games like lottery and casinos, that is why police are in charge just in case if there will be crimes about gambling, since policemen are under of the Government's hands.
This may sound confusing but, I think you misunderstood what I just said to STT and thought I misunderstood what he meant, also you misunderstanding what he really meant.
First, STT is pointing out that it's pointless to ban "gambling" in any country because instead of using the police to prevent crime they intend on having "surveillance" on people that will attempt to do gambling activities. To be clear, instead of using "gambling" to the country's advantage they would rather not use it at all. It's not about the police being "in charge" to casinos to ensure the security. And then for me, I find it also stupid because it would only result in corruption if they ban gambling in the country.