Commandment-keeping gets a bad reputation in the religious world.
There are those whose theology forces them to promote belief without obedience to Christ’s commands. There is a fly in this ointment. Jesus said, “If you love me, you will keep my commandments” (John 14:15).
F.F. Bruce wrote, “Hitherto, Jesus has spoken of his love for his disciples and of their obligation to love one another; now for the first time in this Gospel he speaks of their love for him.”/1
Bruce went on to say that the “vital link” between the disciples’ love and obedience to Jesus was a recurring theme in John’s writings (Cf 1 John 5:3). Bruce wrote, “In such love, the keeping of the divine commandments realizes its perfection.”
The apostle Paul showed the relationship between loving God and obeying his commandments in 1 Timothy 1:5. Paul wrote the goal (or end) of the commandment is love from a pure heart, a good conscience, and a sincere faith.
Our hearts are purified by obedience to the truth (1 Peter 1:22). Please note the apostle Peter showed we purify our souls by our obedience, not just belief. James wrote the demons believe and tremble (James 2:19).
There have been many people who have told others how much they love God and Christ for saving them, but they refuse to obey God. But such is inconsistent with the truth Jesus taught in John 14:15. It is also incompatible with the salvation of the gospel taught by the apostles (Acts 10:48).
1/ The Gospel and Epistles of John, F.F. Bruce, Wm. B. Eerdmans Publishing Co., 1983, pp. 301.