40+ year scuba diver here. This is what I have learned about sharks:
Sharks love to eat seals and other marine mammals, they taste really good!
Humans don’t taste good to sharks. Most attacks are a “taste test “ or a check to see if this is a seal. Humans are rarely consumed by sharks.
If you don’t act like a seal and avoid swimming in water with poor visibility, you have very little chance of being bitten by a shark.
More people are killed by cows every year than by sharks!
So, the answer is...
Don’t swim with COWS!!!