The entrapment defense usually can only be used if an agent or officer induces a person to commit a crime he or she would otherwise not commit. This would be a duress or necessity defense, depending on whether the police were acting legally or not. They're still being jerks though.