legal defenses for minor crimes