Idiom: Poacher turned gamekeeper

What does 'Poacher turned gamekeeper' mean?

Someone who gets a legitimate job which is the opposite of their previous one. E.G a computer hacker who then helps to catch other hackers or an ex-bank robber who then advises banks on security.

See also: