Answer:
I'm not sure if there is a book or story that is supposed to accompany this question.
But a few ways girls stay safe at the beach is with the buddy system. They stay in pairs or groups of people and they never go off alone with a stranger unless both of them consented.