warns that
a person who deliberately sets a trap for others may become a victim of their own scheme.
The saying “He who digs a pit for others falls into it himself” can be used when people who try to do harm to others they will get harmed themselves.