How does the Supreme Court maintain its credibility when faced with public criticism or attacks?

The Supreme Court and its Bar Association have expressed concerns about attacks on the Chief Justice and the risk of the institution being undermined. I want to understand the balance between protecting judicial dignity and upholding freedom of expression.