Meaning: trying to convince somebody, but it is not going to work
Example: You're barking up the wrong tree if you think that I'm going to let you stay up all night and watch horror movies with your friends, said the boy's mother.
See this Idiom in a story: Report Card Time