If you do to the very best you can, you will get a great lesson as to your inability to do perfectly. Then, realizing that God cannot approve that which is imperfect and self-condemned, perhaps you will honestly pray, "God be merciful to me a sinner." (Luke 18:13)
The Bible teaches there is only one door of salvation--Christ (Acts 4:12, “And there is salvation in no one else; for there is no other name under heaven that has been given among men by which we must be saved.” By accepting Jesus's sacrifice for your sins, your sins may be forgiven. (Romans 5:9, "Much more then, having now been justified by His blood, we shall be saved from the wrath of God through Him.")
The most God asks of anybody is that he do the best he can. However, our imperfect best is only acceptable through the blood of Jesus (1 John 2:1,2). We all need a Savior, for the reason, as St. Paul declares, "Ye cannot do the things that ye would." (Galatians 5:17) We cannot do perfectly because we are imperfect; we are imperfect because we were born in sin and "shapen in iniquity." (Psalm 51:5) The Jews, who were under the Law Covenant, tried to justify themselves before God by what they did, but wholly failed. In discussing this question the Apostle points out that the only hope for deliverance is through Christ Jesus, who as the great Deliverer will come and turn away ungodliness from them. (Romans 7:18-25)