Loving God means obeying His commands
And this is love, that we walk according to his commandments; this is the commandment, just as you have heard from the beginning, so that you should walk in it.
Jesus answered, "The most important is, 'Hear, O Israel: The Lord our God, the Lord is one. And you shall love the Lord your God with all your heart and with all your soul and with all your mind and with all your strength.' The second is this: 'You shall love your neighbor as yourself.' There is no other commandment greater than these." (Mark 12:29-31)