I will offer my opinion; I would say the Bible does not directly deal with this. A basic, though, that I am going by is in the Bible > our Apostle Paul says there is "the spirit who now works in the sons of disobedience" > in Ephesians 2:2. I personally understand that this spirit of evil . . . of selfishness . . . is an actual spiritual being. And this evil spirit of Satan works people to do what is evil. It deeply degrades a person's nature so the person can sin and then so suffer after getting those no-no pleasures. This evil being is desperate to feel pleasure so it can feel nicer, but it ruins humans into suffering, in the process of seeking pleasure. So, humans are piggy-backing on Satan's problem.
Jesus says Satan's children have his desires > John 8:44. So, I can see how the lusts > desires with driving emotions > for pleasure are actually Satan's desires living in a person. And so I see how in sinful pleasure seeking and its resulting degradation, we can be piggy-backing on Satan's problem. We need to rest and ride in God's love and leading, instead, and "be content with such things as you have" (in Hebrews 13:5).
I think we can see that evil consists of how ones are desperate for pleasure, taking control so they can get it, and reacting so badly when they don't get it.
And this evil spirit has dominating and dictatorial drives for pleasure and revenge and reacting to not getting its own way. Satan is a conscious being, and his spirit's drives and misery and desperation are conscious in ones who obey his lusts which are dominating and dictatorial and bring people to disappointment and frustration.
But God is so perfectly good in love, so perfectly satisfied so He is not driven-so to seek to use physical things for pleasure. So, in Jesus we have such "rest for your souls." (in Matthew 11:28-30)
So, included in evil is how Satan's spirit is spoiling people from enjoying the rest and caressing of God's love "in our hearts" (Romans 5:5).
I personally think that Satan's evil spirit did predate creation. And my opinion is that God who is all-good could not have gotten Himself to come up with even the idea bringing the spirit of evil into existence. Nor could His "very good" creation of its own nature have brought sin and evil into existence, or even think of it. Therefore, I consider it possible that the spirit of evil has always existed. But it is not immortal in life of love, but merely existent but capable of being conscious in its horribleness. Only God is truly alive, in love.
So, in case my theo-logic is correct, there is a problem with what >
I can see that if there was a point in eternity when there was nothing but God all-good, there never could have been anything inferior. For God Himself could not have brought something inferior into existence. He would not have been able to even imagine any being less than He is, since at such a point He was all good.
But if there were inferior spiritual substances, He could have worked these for His creative purposes, even organizing the spirit of evil so it would not be just anywhere and everywhere, and plan a flaming sewer of fire and brimstone where He would put it, away from us who are His children.
Now, who would be the chief sewer bucket, then?
I have offered what would not agree with this. Possibly, you can see why. It was not only about opposite reacting. And God is almighty to easily and breezily and beautifully do all He pleases. Evil never has a chance against God.
We see, even, how God uses evil for His intentions. Look > consider . . . how Joseph was sold into slavery by his own brothers, yet God used that for His all-loving purpose > Genesis 37:50. And we see how the torture and murder of Jesus on Calvary has been used for such all-loving good, even for ones who have hated and rejected Christ but then have trusted in Him.
So, everything, actually, is cooperating with God

Just don't be a sewer bucket > Ephesians 4:31-32 < of unforgiveness and bitterness and wrath and lusts. Or else, one will serve His purpose, but not by being conformed to the image of Jesus > Romans 8:29.
I have offered otherwise, how there is the actual conscious existing "spirit who now works in the sons of disobedience." (in Ephesians 2:2) So, evil is not only a reaction, or some sort of resistance, but conscious and sharing its horribleness and vanity inside humans.
Instead, we can be sharing with God, in His own love > Romans 5:5 > and how He personally rules each of us in our "hearts" with His own peace > Colossians 3:15.
By the way, evil is not only resistance against our living in God's love and joy and peace. But Satan and his spirit actively attack us, in order to degrade us into being controlled by those dominating and dictatorial lusts > "which war against the soul," our Apostle Peter says in 1 Peter 2:11. So, evil is not only resistance, but actively attacking us spiritually and emotionally and in our feelings. It is conscious >
"Therefore submit to God. Resist the devil and he will flee from you." (James 4:7)
"Be sober, be vigilant; for your adversary the devil walks about like a roaring lion, seeking whom he may devour." (1 Peter 5:8)
All of us have experienced how we can be devoured by Satanic things of unforgiveness, bitterness, and lusts and nasty raging anger about not getting things we want.
So, evil is not only resistance or some sort of a drag.
By the way, "God resists the proud," we have in James 4:6 and also in 1 Peter 5:5. So, God is the One who is doing the resisting . . . but this is loving and caring so proud people do not keep going the wrong way all the way where Satan would take them in his pride of his wicked and nasty-reacting spirit.
But, also, God can use one evil to resist another. This can be what the LORD in Isaiah means where He says He "creates evil". He does not start or cause it, but He creatively manages it with His purpose to resist and deal with wrong people, in order to limit their self-destuctive stuff and how they would harm others. So, it is sort of like setting a backfire in order to keep a raging forest fire in check.
And it is like how humans have a system for taking sewage to where it belongs; but first Jesus wants to save whoever trusts in Him (Ephesians 1:12). So, the flaming sewer's feast is on hold, and evil is being kept here on earth for a while.
I will offer the knowledge is not the problem. But there is the evil spirit of Satan, who degraded Adam and Eve so they had a bad understanding of good and evil. They mainly were noticing their outward situation, then getting worried about being outwardly naked, which was not their real problem. Plus, deep inside themselves, in that evil spirit they could feel shame and fear and being spiritually vulnerable, and be ready to blame someone else. So, it was the evil spirit of Satan and how he is and sees things, being shared with them > including by accusing others, instead of first dealing with how he is so wrong. So, yes we can so share with Satan and how he does things. Evil, then, is not only some force, but personal and having us busy with accusing and blaming others . . . including so we do not seek our Heavenly Father for the correction which we ourselves so need . . . and only God is able to do in us > Hebrews 12:4-14.
So, yes, evil is very active and so clever.
So, it is important not to only depend on knowledge, but submit to how God rules us in His peace, so His peace enlightens and encourages us about what God has us knowing, and God makes us also creative to do what He has us doing about evil, sharing in how He even uses evil for His all-loving good, and is not about solving our troubles only so we can have the lives we want > part of what is evil is how we can try to solve our problems only or mainly so we can feel better and have things our own way; but in God's love we are on top of things