Columbo had a few ‘gotcha’ trick endings where he goaded the killer into trying to kill him. They were not my favorite endings-- I think ‘cop goading the killer to try to kill him to get a conviction’ is as lazy a writing crutch as ‘getting the killer to confess, to get a conviction’.
Usually Columbo had swapped out or deactivated the murdery part of the murder weapon in that situation, so he was in no danger. But in possibly the most ridiculous Columbo ‘gotcha’ tricks (saying this as one who loves most episodes, even the sillier ones), there’s a late-period ('89) episode ending in which Columbo asks a magician to demonstrate a guillotine trick on him. The trick has a ‘lethal’ setting for chopping cabbages in half to show the audience it’s real, and a ‘safe’ setting to not kill humans. The magician, who is the killer and knows Columbo is on to him, sets it to ‘lethal’, but Columbo is unharmed, having swapped out the labels. He didn’t disable the guillotine completely, he had to count on the killer trying to kill him right then or else he would have actually been killed. Maybe the killer might have thought, hmm, tempting, but it’s a little too obvious to try to kill him this way, and there are cops nearby, so I’ll just set the switch to ‘safe’…oops