idiom
Barking up the wrong tree
Meaning
To pursue a mistaken or misguided course of action.
Example
If you think I'm guilty, you're **barking up the wrong tree**.