But they look the other way. Singapore has an open gay scene. I suspect it's like many laws in many countries; if the government wants to nail you, then it'll get used.
As an aside, being gay isn't illegal; acts of "gross indecency" between men are illegal.