I genuinely think, and there's a fair bit of convincing research into this, that these people can't help their attraction. This is abnormality that's wired into them, and there's not really a way to fix that wiring.
I need to make it clear that I would never condone any physical relationship between a child and an adult, but I just don't think there's an actionable option here. Are we now a society that polices people's thoughts? How do even get to determine what another person is feeling in the first place to judge what the consequences should be?
Any pre-emptively punitive measures will just incentive lying, or worse, and not lead to any lasting solutions. The only way to combat the problem starts by first acknowledging the problem, and pedos will have to step out of the shadows for that.
Maybe with advances in therapy or medication or genetics or neurological research, there could one day be a lasting cure. But it's an issue that's so stigmatized that finding willing test subjects is hard, and makes a solution that much harder to find.