All scripture must be understood within the totality of the Bible and as interpreted by the Church. (Read Dei Verbum and/or relevant parts of the Cathechism of the Catholic Church.)
God’s love is infinite, which we cannot comprehend. But, one of the themes in the Bible, from front to back, is to obey God’s commandments. That itself is an act of love.
Our relationship with God is a covenant relationship, and that means we are committed 100%, or should be. We commit that way by use of our free will. We are all struggling with that, no question there.
Marriage is a lifelong covenant, and the rights that two people share in marriage are enclosed in the commitment that they make to each other. And, the same goes with God. We have commitments, and the commitments are defined in the various “commandments.” Jesus said, “if you love Me, keep my commandments.”
Offending God is a term that makes God sound like a human being, which God is not. The Bible and the Church use such imagery to help us understand God and our commitment to Him.
When asked what the greatest commandment was, He said “Love the LORD thy God with your whole heart, your whole soul (to the point of death), with your whole mind, and with all your strength (even to exhaust all your resources for God, if that is what He asks of you). And, the second is like it, to love your neighbor as yourself.”
We offend God by not living up to the covenant.