If you are going to fight one stay close so it can't spit in your face.

More Dilophosaur Encountering Tips