How to stop criminal robots

By 2040, there is a suggestion that sophisticated robots will be committing a good chunk of all the crime in the world.