I think you are looking at this from the wrong angle. There will always be idiots around that misconfigure things, have exploitable bugs in code etc. The aim is that the AI should have some moral sense and know not to do these things.
It's the same in regulated industries. You have controls in place that will stop (human) bad actors, but at the fundamental level they will never be perfect so you have to try and find people that know it is wrong to exploit those loopholes.