Just before the basilisk uses it's ranged poison attack it will coil up. You can see the green reflection on your character from incoming poison attacks letting you know to change directions when running away. It's best to be on a fast mount because a hit from the venom ball will do direct damage to players even on mounts.

More Basilisk Encountering Tips