You search the Scriptures
because you think that in them
you have eternal life; and it is
they that bear witness about Me,
yet you refuse to come to Me
that you may have life.
It is possible to diligently seek to live by the commands of Scripture, yet miss knowing Jesus and living in communion with Him. The Scriptures provide principles we need to make wise decisions in our lives, which is a huge benefit, but they are intended for more than that.
In John 15, Jesus tells us the importance of abiding in Him. Be careful not to slip into seeking to obey the Scriptures for the advantages this offers, yet miss living in fellowship with Jesus and depending on Him. The Scriptures bring us to eternal life only when we come to Christ.