You can easily escape the poison spit by jumping to the side.

More Dilophosaur Encountering Tips