This comes along with the manichaean trope (aka "Black and White Morality"). When the good guy does an action, it is ok because he is the good guy. But when the bad guy does the same action, it is bad.
For exemple, in "Criminal Minds", the serial killer may use psychological manipulation in order to make a guy to kill another : this is bad (the episode with the couples who are hurting each other). But when a profiler uses manipulation other the phone in order to make a bad guy kill the other bad girl, it is ok.