Put it just before the risky moment in your edit, then follow the failed attempt with awkward crickets for the pause, or cut straight to a shocking sound when the mistake actually happens.