For crimes that require intention, people usually only end up in jail because they thought they could get away with it, because of imperfect enforcement.
If everyone knew they would be immediately arrested the second they sprouted a cannabis seed almost nobody would try.