К то рыл и выкопал яму, сам в нее упадет.
He made a pit, and digged it, and is fallen into the ditch which he made.