Wisdom is before him that hath understanding — i.e., he can easily find her.
But the eyes of a fool are in the ends of the earth. — He is looking for her everywhere, while all the time she lies straight before him. (For the thought, comp. Deuteronomy 30:11-14.)