If a man steals a loaf to feed his starving family, then he has committed an illegal act, he has broken the law.
However is what he has done morally wrong ?
The legal system deals with matters of fact, not matters of morality. It is up to the people who make the laws in the first place to deal with the morality and justice issues.
Bookmarks