Child molesters seek out children who are vulnerable, so the greater the efforts parents make to increase their children's resilience, the better, and the obvious route to that is love, support, encouragement, and complimenting them on their successes and so on. That's the best strategy. It doesn't guarantee perfect safety, but it markedly reduces the chances.
Scare tactics don't work. I wrote a book with a colleague in Australia about the prevention of sexual abuse. One aspect of that was how we could arm parents with the necessary wherewithal to reduce the chances so their children would be protected.
This doesn't actually completely eliminate it, but it markedly reduces it. Scare tactics don't work. They just make children frightened of everybody.