This idiom is used to suggest that crime will ultimately not benefit a person. Example: Doing something illegal to get money may be tempting for some, but in fact crime doesn't pay.