The line you're thinking of is from "Go Your Own Way" (1977, Rumours):
"Loving you isn't the right thing to do."
Not "Love you the way you are." That phrase resembles "Just the Way You Are" (Billy Joel, 1977) or "The Way You Are" (Tears for Fears, 1983).
"Go Your Own Way" chorus:
You can go your own way
Go your own way
You can call it another lonely day
Loving you isn't the right thing to do
But I never want to stop
Written by Lindsey Buckingham about his breakup with Stevie Nicks.