Even if you were able to live a perfect life, i.e. you kept God’s law perfectly, you still would perish due to the sin of Adam which has infected you prior to your living perfectly. Only Jesus was able to do this as He led a sinless life.
The Covenant of Works was laid waste the minute Adam fell.