Well Malaysia does have a law prohibiting gambling but that is limited to muslims and the source below proves my point...
"
Non-Malays (mostly ethnic Chinese, Indian, and others) aren't bound by Sharia law, but most of the country is. This is important to note because Malaysia recognizes Sharia (or syariah) courts.
Sharia courts and the secular legal system exist side-by-side in Malaysia. There are debates to this day as to how that should continue in the future and whether or not the Malaysian legal system should be secular, religious, or both.
The dual justice system in Malaysia is complex and difficult to implement. Sharia is mostly reserved for family affairs, but individual states are allowed to implement Sharia in criminal justice matters.
Gambling is clearly forbidden by Sharia law and that could also be interpreted to mean it's off limits for 60% of the country."
Source:
http://www.gamblingsites.org/laws/malaysia/
So Malaysia doesn't discriminate its citizens since it does not bind the minorities under sharia law and hence gambling is allowed for Non-muslims.
And as stated by you, UAE lets non-muslims consume pork or alcohol, so neither of the countries are acting against its minorities the way Haryana imposed a blanket ban on beef consumption.