Head off

1. (someone) To get in front of someone and stop him or her, to turn someone back.

In the movie the soldiers tried to head off the gang at the mountain pass.

2. (something) To stop something, to prevent something.

The company was able to head off a strike by the union at the last minute.