it mean that
any wealth or success acquired through dishonest or unethical means is unlikely to bring long-term prosperity or lasting happiness; Whatever someon obtains in an unfair or illegal way usually don't last long.
similar to
Ill-gotten, ill-spent.