If you love righteousness and good, you will find in God your example, so you will love Him.
If you love good, you will rise above struggling against sin. The words, "The flesh lusts against the spirit, and the spirit against the flesh" (Gal 5: 17) apply only to the beginners who struggle against the flesh which does not submit to the spirit. But the pure and righteous flesh which loves good does not lust against the spirit. The righteous spirit in such a person leads his body, and the Spirit of God leads his human spirit (Rom 8: 14).