Marine biologist almost fell into the jaws of a shark