What's it called when someone tries to stop you from doing something by telling you you to do it?
This is called calling someone's bluff.
Challenge someone to carry out a stated intention, in the expectation of being able to expose it as a pretence.
She was tempted to call his bluff, hardly believing he'd carry out his threat.
[Lexico]