Fake cops robbing Detroiters turn out to be real cops

This reminds me a lot of the Donald Westlake novel Cops and Robbers.