Solomon wrote 3000 proverbs and collected other wise sayings: some made it into the book of Proverbs. These chapters are from the introductory section.
The choice is clear: listen to wisdom (the first thing God created), and He will pour out his thoughts to you; ignore all His counsel, and you will eat the fruit of your way:
Proverbs 1:23-31 Give heed to my reproof;
I will pour out my thoughts to you;
I will make my words known to you.
Because I have called and you refused,
have stretched out my hand and no one heeded,
and because you have ignored all my counsel
and would have none of my reproof,
I also will laugh at your calamity;
I will mock when panic strikes you,
when panic strikes you like a storm,
and your calamity comes like a whirlwind,
when distress and anguish come upon you.
Then they will call upon me, but I will not answer;
they will seek me diligently, but will not find me.
Because they hated knowledge
and did not choose the fear of the Lord,
would have none of my counsel,
and despised all my reproof,
therefore they shall eat the fruit of their way
and be sated with their own devices.
It sounds harsh, but how many want a life without God and His wisdom? How many want the reward of their own labour? They will, as it says here, be sated with their own devices.
It’s literally what happened to Pharaoh, as he refused to listen to God (through Moses). It’s what happened to Israel repeatedly as they turned away from God, suffered the consequences (usually invasion or oppression), then turned back. The amazing thing there is the grace of God that, contrary to these proverbs, had Him listening to His people and saving them.
It’s what we deserve, but God’s grace has given us something else:
Ephesians 2:3-5 All of us once lived among them in the passions of our flesh, following the desires of flesh and senses, and we were by nature children of wrath, like everyone else. But God, who is rich in mercy, out of the great love with which he loved us even when we were dead through our trespasses, made us alive together with Christ—by grace you have been saved—
Or, as Paul went on to say:
Ephesians 2:8-9 For by grace you have been saved through faith, and this is not your own doing; it is the gift of God—not the result of works, so that no one may boast.