Making a rod for your own back.

为自己的背做一根棒子。