Crime novelist Karin Slaughter had an interesting take in one of her stories.
Child molesters aren't in danger in prison because the prisoners have a sense of fair play and want to avenge the innocent victims.
The molesters are in danger because a lot of the men who end up in prison were abused as children and want payback in any form.