Knowledge is a result of sanctification. To believe that one’s salvation is based on what one knows is Gnosticism.

Any information that the unregenerate believe is by default, suppressed in unrighteousness.

Rom 1:18 For the wrath of God is revealed from heaven against all ungodliness and unrighteousness of men, who suppress the truth in unrighteousness;

27 John answered and said, A man can receive nothing, except it be given him from heaven.

The Holy Bible: King James Version, Electronic Edition of the 1900 Authorized Version. (Bellingham, WA: Logos Research Systems, Inc., 2009), Jn 3:27.

3 Jesus answered and said unto him, Verily, verily, I say unto thee, Except a man be born again, he cannot see the kingdom of God.

The Holy Bible: King James Version, Electronic Edition of the 1900 Authorized Version. (Bellingham, WA: Logos Research Systems, Inc., 2009), Jn 3:3–4.

Isaiah 44:9
9 They that make a graven image are all of them vanity;
And their delectable things shall not profit;
And they are their own witnesses;
They see not, nor know; that they may be ashamed.

The Holy Bible: King James Version, Electronic Edition of the 1900 Authorized Version. (Bellingham, WA: Logos Research Systems, Inc., 2009), Is 44:9.

Hebrews 4:2
2 For unto us was the gospel preached, as well as unto them: but the word preached did not profit them, dnot being mixed with faith in them that heard it.

The Holy Bible: King James Version, Electronic Edition of the 1900 Authorized Version. (Bellingham, WA: Logos Research Systems, Inc., 2009), Heb 4:2.

James 3:15
15 This wisdom descendeth not from above, but is earthly, sensual, devilish.

James 3:17
17 But the wisdom that is from above is first pure, then peaceable, gentle, and easy to be intreated, full of mercy and good fruits, dwithout partiality, and without hypocrisy.

The Holy Bible: King James Version, Electronic Edition of the 1900 Authorized Version. (Bellingham, WA: Logos Research Systems, Inc., 2009), Jas 3:15–17.

If the ‘Law of God BRINGS the knowledge of what Sin is…’, it is because that man has been regenerated to appreciate the idea spiritually, above and beyond what the flesh is able.

Ch 8 of the WCF states:

I. They who are effectually called and regenerated, having a new heart and a new spirit created in them, are further sanctified, really and personally, through the virtue of Christ’s death and resurrection, by his Word and Spirit dwelling in them; the dominion of the whole body of sin is destroyed, and the several lusts thereof are more and more weakened and mortified, and they more and more quickened and strengthened, in all saving graces, to the practice of true holiness, without which no man shall see the Lord.

II. This sanctification is throughout in the whole man, yet imperfect in this life: there abideth still some remnants of corruption in every part, whence ariseth a continual and irreconcilable war, the flesh lusting against the Spirit, and the Spirit against the flesh.

III. In which war, although the remaining corruption for a time may much prevail, yet, through the continual supply of strength from the sanctifying Spirit of Christ, the regenerate part doth overcome: and so the saints grow in grace, perfecting holiness in the fear of God.