Odd interpretation, I think. To me it sounds more as if those who wrote the text, meant "Don't keep people in prison for too long, transfer them elsewhere to some place better for rehab as soon as reasonable." But not "rehab is forbidden and prisoners should get bullied by sadists"