People are being urged to swim or surf in groups as two species of potentially deadly sharks are coming closer to shore.