means that
someone familiar with wrongdoing may be especially effective at detecting or preventing it because of their knowledge of how it is carried out.
also
Set a thief to catch a thief.
When a former poacher is good at preventing others from committing the same offense, because he can understand their thinking, so he can be an…, the saying “An old poacher makes the best gamekeeper” is appropriate.