That's a horrible analogy. In that case there's an imminent danger.
The point here is that there are cases when bad people have intent to do harm and need to be stopped in ways faster than a court of law can individually approve. Whether this is one of those cases is the real question.