I don't know where the line is or how it should be done, but I know as much as I know anything that it's not the proper solution if it ends with "and some innocent bystander live was (temporarily) ruined in the process".
(I used that exemple because it's the one I always remember as the court case marked my mind, but I'm sure most countries have an equivalent)