If you post the whole verse we see a completely different context.
Gen 2:4 These [are] the generations of the heavens and of the earth when they were created, in the day that the LORD God made the earth and the heavens,
Jesus Christ carries a lot of weight on this topic in my judgment. You will notice that Jesus understood the passage in Genesis Chapter 1 was speaking about the same people as those being spoken of in Genesis Chapter 2. Also it makes it consistant with the rest of scripture.
Gen 1:27 So God created man in his [own] image, in the image of God created he him; male and female created he them.
Gen 2:24 Therefore shall a man leave his father and his mother, and shall cleave unto his wife: and they shall be one flesh.
Mark 10:6-8
6 But from the beginning of the creation God made them male and female. [Gen 1:27]
7 For this cause shall a man leave his father and mother, and cleave to his wife;
8 And they twain shall be one flesh: [Gen 2:24] so then they are no more twain, but one flesh.
You will notice the precision the Holy Spirit inspired Paul to write. It doesn't just say, "the first man", it says "the first man Adam", just as we would expect in that it is consistent with Jesus Christ's statement.
1Cr 15:45 And so it is written, The first man Adam was made a living soul; the last Adam [was made] a quickening spirit.
Jesus Christ [last Adam] recaptured the spiritual life that Adam forsook.