I would only allow her off leash where it is acceptable. If it isn’t a dog beach, then she should be on a leash. If it is a dog beach, and she is being friendly, then she is fine.
You could try a training lead or retractable leash for the beach so she has pseudo-freedom, but incorporate training by not allowing her to practice her behaviors and fixing a command to the act of leaving others alone. Everytime she wants to romp over to a friend, give a command and reel her back to you with either a treat waiting or if she enjoys anything else like fetch, running with you, some type of reward that is better than greeting a stranger.
But again, if it isn’t a dog beach, it might be best to keep her leashed.