When is it better being poor than being rich? (Proverbs 28:6)

Better is the poor who walks in his integrity than he who is crooked though he be rich.