If it attacked you keep hitting it and then it will run away and you can chase it.

More Dilophosaur Everything Else Tips