Ecclesiastes 10:8

10:8 He who digs a pit may fall into it; and whoever breaks through a wall may be bitten by a snake.
-World English Bible

Other Translation

10:8 He that diggeth a pit shall fall into it; and whoso breaketh an hedge, a serpent shall bite him.
-King James Version