There are many expressions to describe someone who is going about something in the wrong way. “Making a mistake” is one way to describe this situation. “Screwing up” is another, although it is a bit rude, and “Attempting to rescue Lemony Snicket by writing letters to a congressman, instead of digging an escape tunnel” is a third way, although it is a bit too specific.