I’m also imagining the police telling you that you can do something that is actually illegal, and then you get prosecuted for it. “The cops said it was ok” may not be an adequate defense.
Entrapment is reserved for the police going above and beyond, eg "sell me meth or I'll kill your dog" where it can be argued that the entrapped normally would not do the crime.
I still wouldn’t be very excited to try this defense in court.
No, this is about on duty police in uniform saying it's okay.