If they are mentally ill or addicts, they should be provided support to help ease their transition
If they’re iconoclasts who are being problematic for the sake of it, treat them on a sliding scale of criminal offense. Usually being scared straight is effective.