This very wrong view gives the message of being able to moralize one's way into heaven, when we know our righteousness is as filthy rags.
Isaiah 64:6 But we are all as an unclean thing, and all our righteousness are as filthy rags; and we all do fade as a leaf; and our iniquities, like the wind, have taken us away.
We need to realize the bible for what it REALLY is: God's continued revelation of Himself and interactions with a people and of a promised messiah, Christ's birth, obedience, crucifixion, death and resurrection, and God's instructions, directions and promises for living holy and righteous lives pleasing to Him, once you have accepted Christ as Lord and Savior.
His word cannot be understood before salvation and the infilling of His Holy Spirit.
-Take notice that God doesn't judge His people because they didn't offer sacrifices or keep His holy days. It was and is always because their hearts and minds are not with Him. Any of the laws that weren't kept,was always due to their falling away from Him and returning to their sin of idolatry.