Person A: "If X can do this, so can I."
Person B: "Well, [insert idiom]."
In this situation X is someone who should not be emulated or treated as a role model. For example, X may be someone who is dishonest, so you would discourage someone from using X's behavior as justification for their own. Looking for something akin to "using the wrong measuring stick".