Respect the wicked?

Proverbs 18:5 (Amplified Bible)

To respect the person of the wicked and be partial to him, so as to deprive the [consistently] righteous of justice, is not good.

This struck me hard this morning. There is indeed an opportunity cost to some apparently good conduct. It may appear right to give a priority to the squeaking person, but since time and energy are always limited this comes at the cost of not devoting the time and energy to clearly good people and causes. This is a tough one for me. Aren’t we supposed to respect all. Please help me sort this one out.