Place it at the exact beat before the impact in a fail edit, then follow it with a reaction sound once the person ducks. A buzzer works for the failed attempt, while a scream fits the near miss that follows the warning.