You should be safe as long as you obey the beach flags.
Obeying the beach flags should keep you safe.