A cop telling you it's okay to do something, and then getting arrested for it, might be one of the only times you can correctly claim entrapment.
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.