Not hard to dodge the ranged attacked but if you are just walking to backwards and to your side it will predict your path and spit to suit, just walk backwards once it isnt higher than you

More Dilophosaur Encountering Tips