Civilized people are taught by logic, barbarians, by necessity, communities by tradition; and the lesson inculcated even in wild beasts by nature itself. They learn that they have to defend their own bodies and persons lives from violence of any and every kind by all means within their power.
What is morally wrong can never be advantageous, even when it enables you to make some gain that you believe to be to your advantage. The mere act of believing that some wrongful course of action constitutes an advantage is pernicious.