8 ἀλλὰ μενοῦνγε καὶ ἡγοῦμαι πάντα ζημίαν εἶναι διὰ τὸ ὑπερέχον τῆς γνώσεως Χριστοῦ Ἰησοῦ τοῦ κυρίου μου, διʼ ὃν τὰ πάντα ἐζημιώθην, καὶ ἡγοῦμαι σκύβαλα , ἵνα Χριστὸν κερδήσω 9 καὶ εὑρεθῶ ἐν αὐτῷ, μὴ ἔχων ἐμὴν δικαιοσύνην τὴν ἐκ νόμου ἀλλὰ τὴν διὰ πίστεως Χριστοῦ, τὴν ἐκ θεοῦ δικαιοσύνην ἐπὶ τῇ πίστει, 10 τοῦ γνῶναι αὐτὸν καὶ τὴν δύναμιν τῆς ἀναστάσεως αὐτοῦ καὶ [τὴν] κοινωνίαν [τῶν] παθημάτων αὐτοῦ, συμμορφιζόμενος τῷ θανάτῳ αὐτοῦ, 11 εἴ πως καταντήσω εἰς τὴν ἐξανάστασιν τὴν ἐκ νεκρῶν. Philippians 3:8-11 (NA28)
8 But even more so I consider all things to be loss on account of the excellency of the knowledge of Christ Jesus my Lord, on account of whom all things I suffered loss and I consider them dung, that I may gain Christ 9 and be found in him, not having my own righteousness that is of the law, but the righteousness through faith in Christ, the righteousness from God based upon faith, 10 to know him and the power of his resurrection and the fellowship of his sufferings being conformed to his death, 11 that if somehow I may attain to the resurrection from the dead. Philippians 3:8-11 (translated from the NA28 Greek text)
Legalism is the default religion of most people. However, when God gave the Law to Moses to give to Israel, he did not do so as a means for sinners to earn the Kingdom of Heaven. The Law was given to Moses on the mountain after the people were redeemed from Egypt (Exodus 20:1-17). The sacrificial system within the Law proves that the Lord knew the people would fail to obey the Law perfectly. If the Law is not a means for sinners to save themselves, why did God reveal it at all?