He could understand the direct consequences - he couldn’t understand the more minute ramifications of his actions. As in, his autism made it more difficult for him to understand why it was morally wrong, or whom his actions damaged.
Not saying he couldn’t understand at all, just that he wouldn’t understand as much as a…