Play devil’s advocate
to pretend to disagree with someone in order to start an argument or interesting discussion
an attempt to find all the people in a partcular group in order to punish them or treat them unfirly.
Dig your own grave
to do something that will cause serious problems for you in the future