Deuteronomy 13:4 (NLT)
4 Serve only the Lord your God and fear him alone. Obey his commands, listen to his voice, and cling to him.

As prescribing a preservative from the temptation: "Keep close to your duty, and you keep out of harm's way. God never leaves us till we leave him.' Or, As furnishing us with an answer to the temptation; say, "It is written, Thou shalt walk after the Lord, and cleave unto him; and therefore what have I to do with idols? [Matthew Henry Commentary]

In his book Fill These Hearts, Christopher West describes a surprising and simple discovery that changed his marriage:

Years ago [my wife] and I were out to dinner and she observed that something was different about our marriage in recent years, something good. She asked me if I had any insight into what it was. After reflecting a bit I said with a smile, "Yeah, I think I know what it is. I think I've been realizing deep in my heart that you can't satisfy me." She got a big smile on her face and said, "Yeah, that's it. And I've been realizing the same thing: you can't satisfy me either." I imagine anyone overhearing us in the restaurant would have thought we were about to get divorced, but to us that realization was cause for joy and celebration. We had never felt closer and freer in our love.
I love my wife more than words can express, and I know she loves me. But I can't possibly be her ultimate satisfaction, and she can't be mine.
And that's why our conversation at the restaurant was cause for rejoicing. Only to the degree that we stop expecting others to be "god" for us, are we free to love others as they really are, warts and all, without demanding perfection of them, whether a spouse, a friend, a son or daughter, or any other relationship. And only to the degree that we are free from idolizing � human beings are we also free to take our ache for perfect fulfillment to the One who alone can satisfy it.

In Christ alone my hope is found; He is my light, my strength, my song; This cornerstone, this solid ground, Firm through the fiercest drought and storm. What heights of love, what depths of peace,
When fears are stilled, when strivings cease! My comforter, my all in all�Here in the love of Christ I stand. [In Christ Alone, written by Keith Getty & Stuart Townend]