It is worth noting that sex offenders are predisposed to repeat offending. I've worked with that category of psychiatric offender and find them repugnant, not least because one of them set me up to be assaulted, which I was; although my assailant was a feeble individual the grey area of self defence 'in good faith' is a difficult one, so I was reduced to pushing him away and into a seat until the crash team arrived.
There is a proportion that does not re-offend including those who are medicated using, e.g., di/stilbesterol (unwanted effects include growing breasts, making this a difficult matter, since most paedophiles seem to know how to hire a good lawyer). The attitude of law enforcement and psychiatric agencies in this country tends to be that they should be left to handle such offenders as they are best placed to maintain (e.g. not 'lose') contact with and control this very dangerous category of offenders; the implication is that, unmonitored and on the lam, they are more likely to behave impulsively and kill someone; children particularly spring to mind.
To repeat, I cannot stand sex offenders, they are devious, manipulative and mendacious, and my professional experience of them, that is (to repeat) I was assaulted as a result of manipulative behaviour by one of them, and I wish there were a solution to them that is commonly accepted as moral.
People frequently suggest they should be orchidectomised ("cut off their nuts"); human sexual behaviour is fixed inside of the womb before birth, and all this does is to make them more resentful and thus dangerous.
There is no easy solution.