Three thieves in Miami Beach picked on the wrong guys to try to rob!

FOX's Gary Baumgarten reports:

Two undercover Miami Beach cops on foot patrol along Ocean Drive, when three guys decided to rip them off: 

(Oates) "We had some plain clothes officers out doing some of the special crime patrols we're doing these days and two of them were basically targeted for a robbery."

That's Miami Beach police chief Daniel Oates, who says the trio threatened the cops with a knife and with their fists until one of the detectives identified himself as a police officer and showed them his gun and badge.

According to the arrest report, one of the guys responded: Officer, my bad. I really didn't know you were cops!

Gary Baumgarten, FOX News.

Follow Gary Baumgarten on Twitter: @GaryBaumgarten