What’s the word for when someone tells you to do something and that same person reprimands you for it? [closed]

The word you are looking for is "entrapment."

Entrapment is a legal term that describes what happens when someone is tricked into committing a crime. - Vocabulary.com

The woman's defense was entrapment; she claimed that she had no intention of buying contraband until an undercover policeman badgered her into it, and she went along just to get him to leave her alone .