The sugar in whole fruit is no problem, because there is enough fiber. Sugar without fiber is poison. Sugar with fiber feeds your gut bacteria, which thrive on sugar.
I recommend books, or even Youtube videos, by Robert Lustig, a distinguished pediatric endocrinologist who has done a great deal of work in liver metabolism.