Use 'stave off' when expressing urgent prevention of something negative happening soon. They donated food to stave off hunger in the crisis-hit region.
Pro Tip 2/3
Active Effort
'Stave off' implies actively working against a threat, not passively avoiding it. The town built levees to stave off flooding.
Pro Tip 3/3
Temporary Fix
Often, 'stave off' suggests a temporary solution, not a permanent fix. I drank coffee to stave off sleepiness during the meeting.