means that
another person's wrongdoing does not justify responding with wrongdoing of one's own.
similar
Two wrongs do not make a right
When if someone does something wrong, doesn't mean that we are excused for doing the same wrong., the saying “Two blacks do not make a white” is appropriate.