They reel to and fro and stagger like a drunken man and are at their wits' end [all their wisdom has come to nothing].