As writers often say: there’s no such thing as a synonym.
“That’s a bad thing to do…”
Maybe should be: “That’s a stupid thing to do…”
Or: reckless, irresponsible, selfish, etc.
In other words, maybe it has nothing to do with morals and ethics. Bad is kind of a lame word with limited impact.