If it is dishonorable, don’t do it. Even if it’s legal. If legal punishment is your measure of right and wrong then you are at the moral level of an animal.
The realest thing Nietzsche has said.
"If you kill a cockroach, you are a hero. If you kill a butterfly, you are evil. Morality, therefore, has aesthetic standards."