When mental treatment won't help, what do you do with a suspected criminal?

Cane Madden’s bail has been set at $1 million following the alleged attack and rape of an 8-year-old girl.

When mental treatment won't help, what do you do with a suspected criminal?