You're either talking through your hat, or have drunk too much of the PAP Kool-Aid. Our courts have been far from independent or neutral when it comes to politically charged cases.
Case in point:
"There is a law in Singapore that prohibits loitering "within 200m of a polling station" on elections day. In 1997, GCT, LHL and TT were loitering inside a polling station in Cheng San on elections day. A complaint was made. The Attorney-General of the day concluded that no offence had been committed because the law prohibited loitering "within 200m", which is not the same as loitering inside. That AG later became the Chief Justice 9 years later. Make of that what you will."
That was an interesting case you brought up. It is a matter of SEMANTICS, with RELEVANCES to legislators getting the RIGHT wordings in place, so that there be NO disputes in question, & a learning lesson for other Elected legislatives - current or opposition - to take serious note of.
There is NO law in any country that restricts one from greeting another, a basic Human Right, as we are only Humans & basic courtesy is important, & when delayed from leaving a restricted area by such Human courtesies, IN the compound, more so one whom is a popular public National figure, with no intended harm or hurt to anyone or to the basic principles on why the area was restricted. Thus it is a case of SEMANTICS, which when properly phrased, all would comply & do such greetings outside the designated perimeter...
Ultimately, our Court is the 3rd arm of Democracy. Should our Courts - whom does not make laws but only interpret Legislated laws by Parliament, be not independent or neutral, that AG would had been appointed Chief Justice the NEXT day after elections.
But it took him
9 long arduous years, with PROVEN dedication in many, many more other legal disputes resolution, to uphold the Rule of Law in our Singapore Civilization, to be selected by legislators, Executive & peers, to become the Chief Justice, an ambition of EVERY lawyer but only one can make it.