Place it at the end of a fail sequence, after the mistake has already happened on screen. Build tension with a sudden suspense sting before the error, let this clip close the sequence, then follow with sad violin for the lingering aftermath if the joke needs a sadder tail.