If this isn't the entire purpose of law enforcement then what is exactly?
When police raid a grow-op they often may only have a search warrant but they end up making several arrests because they find people actively commiting crimes when they execute the warrant.