From the family line of Adam, there is both the fallout from tragedy (4:8) and a split of trajectories (4:25-26). God's plan and the family line of His people will be carried, not by the firstborn or second born, but by the third son, Seth. And God is faithful in continuing the line of His people, from Adam to Noah. Enoch is of particular example, because of his righteous walk with God, God did something miraculous. Many lessons in this passage for us to exemplify God's love, to seek His face and to pursue righteousness.
Quoted section of Matthew Henry's commentary re Genesis Chapter 5:
https://www.biblestudytools.com/commentaries/matthew-henry-complete/genesis/5.html
All the patriarchs here, except Noah, were born before Adam died; so that from him they might receive a full and satisfactory account of the creation, paradise, the fall, the promise, and those divine precepts which concerned religious worship and a religious life: and, if any mistake arose, they might have recourse to him while he lived, as to an oracle, for the rectifying of it, and after his death to Methuselah, and others, that had conversed with him: so great was the care of Almighty God to preserve in his church the knowledge of his will and the purity of his worship.