That's no reason to just give up. Do we give up on schools because they are attractive to paedophiles?
Children should be safe online and in school or nursery.
We should try our best to protect children online in a similar way that there are age restrictions in the real world like for alcohol and movies. It won't ever be 100% but for parents who care it helps greatly.
For abuse perpetrated by an adult on children we should strive to stop 100% of cases, but unfortunately that is not possible either.