sich selbst ein bein stellen

listen to the pronunciation of sich selbst ein bein stellen
Deutsch - Englisch
to make a rod for one's own back