If you whistle neutral they will run away, also if you have another following you it will not attack when whistled too

More Basilosaurus Encountering Tips