A judge said he posed a 'significant danger to anyone with whom you form a relationship'