I don't have the gift of words and really have a hard time explaining what I believe, but I'll try.
I think that trying to be moral is following the written law. Having the fruit of the Spirit comes from being led by the Spirit.
First we have the written law. When the law came sin sprang to life.
The law is there to show us our sin and because of it sin became utterly sinful.
I can then look at my sin and try to fix myself by being moral and self righteous or I can confess my sin and agree with God that there is no good thing in me.
Romans 3:20
20Therefore by the deeds of the law there shall no flesh be justified in his sight: for by the law is the knowledge of sin.
Romans 3
31Do we then make void the law through faith? God forbid: yea, we establish the law.
Romans 8
1There is therefore now no condemnation to them which are in Christ Jesus, who walk not after the flesh, but after the Spirit.
2For the law of the Spirit of life in Christ Jesus hath made me free from the law of sin and death.
3For what the law could not do, in that it was weak through the flesh, God sending his own Son in the likeness of sinful flesh, and for sin, condemned sin in the flesh:
Galatians 5
18But if ye be led of the Spirit, ye are not under the law.
19Now the works of the flesh are manifest, which are these; Adultery, fornication, uncleanness, lasciviousness,
20Idolatry, witchcraft, hatred, variance, emulations, wrath, strife, seditions, heresies,
21Envyings, murders, drunkenness, revellings, and such like: of the which I tell you before, as I have also told you in time past, that they which do such things shall not inherit the kingdom of God.
22But the fruit of the Spirit is love, joy, peace, longsuffering, gentleness, goodness, faith,
23Meekness, temperance: against such there is no law.
24And they that are Christ's have crucified the flesh with the affections and lusts.
25If we live in the Spirit, let us also walk in the Spirit.
John 8:32
And ye shall know the truth, and the truth shall make you free.