If we understand the verses about the eye to be a warning against desiring what you see and allowing it to control you, then the whole passage deals with riches and how we respond to them. First, accumulate spiritual treasure, rather than earthly. Next, don’t allow your desire for things to sabotage your relationship with God. Third, understand that God needs to be your ultimate priority in life. But what does this mean practically? Don’t you need the things that money buys in order to live? Of course, but trust that God will give you what you need. He takes care of those who trust, worship, and serve Him. Let Him worry about tomorrow, so you don’t have to!
Proverbs 3:5-6 “Trust in the Lord with all your heart, and do not rely on your own understanding. Acknowledge him in all your ways, and he will make your paths straight.”