The controversy about the decision to fly an upside-down American flag outside the home of Justice Samuel Alito recalls St. Paul’s admonition that while some things may be lawful, “not all things are helpful.”

I can offer no opinion as to whether the flag display at the justice’s house was actually unlawful. I won’t even opine whether my flying the flag upside-down flag at my house would have constituted a violation of the Code of Ethics that binds me and all federal judges — except the justices.

To me, the flag issue is much simpler. The fact is that, regardless of its legality, displaying the flag in that way, at that time, shouldn’t have happened. To put it bluntly, any judge with reasonable ethical instincts would have realized immediately that flying the flag then and in that way was improper. And dumb.

The same goes with the flying of an “Appeal to Heaven” flag at Justice Alito’s vacation house along the New Jersey shore. Like the upside-down flag, this flag is viewed by a great many people as a banner of allegiance on partisan issues that are, or could be, before the court.

Courts work because people trust judges. Taking sides in this way erodes that trust.

In four decades as a federal judge, I have known scores, possibly hundreds, of federal trial and appellate judges pretty well. I can’t think of a single one, no matter who appointed her or him, who has engaged or would engage in conduct like that. You just don’t do that sort of thing, whether it may be considered over the line, or just edging up to the margin. Flying those flags was tantamount to sticking a “Stop the Steal” bumper sticker on your car. You just don’t do it.

Assuming it is true that it was Justice Alito’s wife who raised the inverted American flag, apparently in response to some provocative behavior from a neighbor, I do sympathize. (How the “Appeal to Heaven” flag came to be flown at his house is not known.) Being a judge’s spouse is not easy. On the one hand, a person should not have to forfeit the right to free expression at the marriage altar. On the other hand, it is not unreasonable to expect a spouse to avoid embarrassing a loved one, or complicating his or her professional life. This is true not only for Supreme Court justices, but for people in many walks of life.