This was originally a nautical term for a sailing vessel which is sailing a bit too close to the wind for that particular tack. The expression is also used to reference someone approaching a task or problem from the wrong direction or continuing to go off in the wrong direction. A nautical term that has now become part of everyday language
