DO NOT be that creepy guy with a camera or drone on the beach!
not only is this poor form which places you at risk of potentially violent repercussions from those you may offend, but Australia now has a law which allows anyone to make criminal charges against a photographer who publishes any “intimate” photos of them in public without their consent - and in the broad meaning of “intimate” in this context, it does NOT require them to be topless or nude, and it could be with them wearing swimwear as long as they are upset a photo of them was published (remember their may be cultural ramifications for some subjects found to be showing any skin!)
when it comes to children, this becomes a very difficult area - in general, you probably should not take photos of other kids unless you have their parent's consent.