Keep hitting them. This means that they don’t have time to spit poison at you.

More Dilophosaur Encountering Tips