AIs are the best at exploting unexpected perverse incentives.
You will see this whenever you train an AI to play a video game. It will eventually find a glitch and exploit it endlessly in the weirdest of ways.
If you poorly design an AI to lower crime rate in a given population, it can come up with a solution where population = 0 and therefore crime rate is 0.