Studies point out that most people with mental health and neurodevelopmental disorders are more likely to be victims than being perpetrators.
The problem that the motives for crimes can go from being sadistic to believing that it is justified to commit crime or it is harmless. There are situations where laws are unjust or don't make sense to follow, or there was a duress situation, where a person forces you to commit crimes with intention to harm you, or crimes without malice. And in vary rare situation from being victimized for a long time, you feel angry at the world.
Breaking the laws is very broad, it goes from infractions, misdemeanors and felonies.