A spouse who kills after finds their partner in bed with someone else is what is traditionally called a 'crime of passion'. Maybe they would have committed that crime even if a policeman was looking over their shoulder.
A person who pockets a cell phone left unattended in a bar may be an equally spur-of-the-moment decision - but we wouldn't consider it a crime of passion. If a policeman was looking over their shoulder, they'd have resisted the impulse.
If people aren't being deterred from the second type of crime, we've got to ask whether the chance of being caught is too low, whether the punishment is too small, or whether the person isn't being rational about the expectation of punishment. Which probably varies from one crime to another.
[1] http://articles.latimes.com/2001/jun/19/local/me-12244 [2] https://www.npr.org/2016/04/04/473004950/new-orleans-man-fac... [3] https://www.rollingstone.com/politics/news/cruel-and-unusual...
Are these rules and punishments are good for people of North Korea? I don't think so. Will I obey law, when I will be in North Korea, even if I think that it is wrong? Of course.