You just need to show her that you'll be there for her. You won't judge, blame or critcize her.
I don't have problems with raising your child with knowledge like "don't talk to strangers" but I think you need to be able to show that they can always come to you for anything.
The biggest focus on preventing rape should be education, not victim blaming.
I'll also add that you need to foster that relationship from the beginning. Make it a very open and honest household because just saying "you can come to me with anything" is useless without the environment to back it up.
My mom was very closed off when I was growing up but she would always give me this advice:
Don't leave your drink alone at the bar when you go to the bathroom. Someone can slip something into your drink then take you somewhere and bull you in the butt
As silly as that advice was I did heed it but at the same time, if something like that happened, I wouldn't feel all that comfortable talking to her about it because we never actually established that connection. To this day, I feel awkward even hugging her. Develop that relationship at a young age so she feels comfortable coming to you in the first place. That's my biggest goal when
if