I have been close to sharks on a number of occasions. I belong to the school of stay away.
When they get close a stamp of the foot usually works. In the Seychelles the guides have long poles with spikes on.
Having seen the scars on John Donnell's arm I am not going anywhere near sharks. if I can help it.