That’s a long way in the future, if it even ever happens (and I hope it never does) so no one knows.
Are you suggesting that a self-driving car will also have some sort of technology that will somehow know its passengers are bank robbers and so it should not drive them away, or something?
Even if there were, are we also going to lose the right to program or hack computers or electronic devices, in order to coddle the fears of control-mongering cowards who want some sort of righteous computerized dystopia that tries to watch, record, analyze and control everything anyone does? I sure hope not. At any rate, it’s unlikely to be possible to control everything that way, and trying to create something like that environment seems liable to drive people to madness and violence out of the soul-smothering oppressiveness of it.
In any case, the answer could be that they hack, bypass, reprogram, etc the electronic/computerized controls so that they bypass the limits and/or repurpose or replace the programming to do what they want. The more computers and networks get hooked up to all sorts of devices, the more pandemonium will be possible without even needing to be anywhere near the devices you want to go berserk. Hackers anywhere in the world may be able to reprogram cars and drones and airplanes and ships and powerplants to do crazy homicidal acts. Not to mention all the bugs, malfunctions, and situations no one anticipated but that become statistically inevitable to occur the more devices we wire up and automate, and the longer they are deployed.
And with all the other new types of technology developed, no doubt there will be plenty of other ways to abuse those. Cars are over 100 years old now. Just imagine how much mayhem the hovering drones and hoverboards will be able to do.
Assuming technology even manages to progress that much further… there are much greater challenges to worry about than bank robbers out there. Global climate change, fresh water issues, corporate domination of our politics, laws, media and wealth, etc…