I have had more than one escort ask me either by text before the encounter or in person at the start of the meeting whether I was law enforcement. I believe that, while there is no general rule that says law enforcement can't lie about their identity, I also believe that doing so can help build a case for the defense of entrapment. This, by the way, could vary by state.