I think that should be forbidden.
We have a legal principle in most countries that you can't be forced to testify against yourself or against family, or that the court can't use illegally obtained evidence. If we were just interested in solving crimes above all, we wouldn't have those restrictions. Why don't we e.g. make the punishment for not confessing or denunciating equal to the punishment for the crime itself?
In the same vein, I think there should be a restriction in place in principle. Your stuff cannot be made to work against you.
The police should not be able to remotely stop your car via software. And more importantly, if you have any implants like a pacemaker, the police should not be able to use that to incapacitate you. It's entirely concievable that at some point there will be a hostage situation where the criminal has an implant, and somebody will come up with that plan.
More general, as "stuff" is becoming more and more intelligent, we should be able to trust our stuff. I think it is a fundamental value in the modern "information society" or "IOT world" or "industry 4.0" or what you might call it.
The idea seems crazy at first, but the more I think about it, it is right up there with free speech, or the idea that my wife can't be forced to testify against me. (Or, controversially, the right to bear arms - and I say that as a liberal who is for strict gun control! - but I think the sentiment is related. When the government goes out of control, some people want to rely on their guns - I think that is not realistic, and harmful for society - but I just want to be able to rely on my laptop, to be able to write subversive content without it ratting me out!)