People have often misunderstood what is meant by the term 'law' in the Bible. They sometimes think it means just the ten commandments or the first five books of the Bible attributed most closely with Moses. However, the entire Bible is inspired by God, and the entire word of God is what is meant by the term 'law' when the Bible uses it. That is why the blessed (saved) man in Psalm 1 meditates on the law day and night and why it is his delight. It is the entire word that he is allowed to meditate on, the law of God. Further, Psalm 119 uses the term 'law' interchangeably with words like precepts, word, statutes, testimonies, commandments. These are other terms used to describe the Bible as well.
Further, it is good to remember that the Bible is written in parable form (Palm 78:2, Mark 4) so that meanings are often in need of interpretation further than just the surface text.
Further, it is also good to remember what Hebrews 7:19 reminds us:For the law made nothing perfect, but the bringing in of a betterhopedid; by the which we draw nigh unto God. The better hope is Jesus. The Bible (law) makes nothing perfect by itself. Indeed, the Bible illustrates that humans just don't measure up to God's perfection as individuals. Thank God for Jesus who makes up the difference for us out of his great love. It is Jesus himself through whom we draw nigh unto God.