In criminal law, entrapment is a practice whereby a law enforcement agent induces a person to commit a criminal offense that the person would have otherwise been unlikely to commit. It is a type of conduct that is generally frowned upon, and thus in many jurisdictions is a possible defense against criminal liability.
Depending on the law in the jurisdiction, the prosecution may be required to prove beyond a reasonable doubt that the defendant was not entrapped or the defendant may be required to prove that they were entrapped as an affirmative defense.
Sting operations are fraught with ethical concerns over whether they constitute entrapment.
This the kind of entrapment I was referring to. Examples are 'unwelcome solicitations' criminal complaint or labour law complaint of a once friendly Russian lady. Another is criminal complaint for harassment or sexual harassment of a once-friendly Russian lady or any mole for that matter. I just do not know if they have to be law enforcement officers. It might fall under malicious prosecution. The heck, I am not a lawyer although I had a girlfriend once who is daughter of a cop.