Functions of criminal law, Justification and excuse defense