When autistic people commit sexual crimes

Many first-time sex offenders on the spectrum may not understand the laws they break. How should their crimes be treated?