TAKE DOWN A PEG OR TWO
Some believe that in earlier centuries, the peg in question was used to lower a flag aboard ship; to take it down a peg or two was to lower it, and thus today, this means to rein in a person's arrogant behavior.