Both "Pulpit Commentary" and "Gill's Exposition of the Entire Bible" recognize this quote as taken from Genesis 2:7, not word by word but carrying the same meaning.
Then the LORD God formed the man from the dust of the ground. He
breathed the breath of life into the man's nostrils, and the man
became a living person. (Genesis 2:7, NLT)
The "Last Adam" was composed by Paul himself, which was analogous to Jesus Christ, as John Gill wrote,
by "the last Adam" is meant Jesus Christ, called Adam, because he is
really and truly a man, a partaker of the same flesh and blood as the
rest of mankind; and because he is the antitype of the first man Adam,
who was a figure of him that was to come; and therefore called Adam,
It makes more sense when we interpret the "seed of Eve", who will strike the serpent, as Christ, as John Gill also commented on Genesis 3:15.
And I will put enmity between thee and the woman, and between thy seed
and her seed; it shall bruise thy head, and thou shalt bruise his
heel. (Genesis 3:15, KJV)
and especially by the seed of the woman may be meant the Messiah; the
word "seed" sometimes signifying a single person, Genesis 4:25 and
particularly Christ, Galatians 3:16 and he may with great propriety be
so called, because he was made of a woman and not begotten by man; and
who assumed not an human person, but an human nature, ...
... Messiah, the eminent seed of the woman, should bruise the head of
the old serpent the devil, that is, destroy him and all his
principalities and powers, break and confound all his schemes, and
ruin all his works, crush his whole empire, strip him of his authority
and sovereignty, and particularly of his power over death, and his
tyranny over the bodies and souls of men; all which was done by
Christ, when he became incarnate and suffered and died, Hebrews 2:14.