Who digs a pit for others will fall in themselves.

为别人掘坑的,自己必掉在坑里。