What is the meaning of [Who digs a trap for others ends up in it himself]

“He who intends to harm others will himself suffer from his action. – As anger is blind, some aspects of an action – harmful for the doer – may be overlooked in the process.”(Paczolay, 1997 p. 77)