In John 3:16 "God says He loved the world and gave His Son yet scripture tells us not to love the world......1 John 2:15-16
The verse "For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life" (John 3:16) is often misunderstood. It is often cited to support the belief that God loves every individual on Earth equally and unconditionally, regardless of nation, ethnicity, or covenant. However, when rightly divided with the rest of Scripture, we begin to see a very different picture. The Bible is a book of covenants, written to and about a specific people. It is not a general, abstract letter to the entire world. The "world" that God so loved must be interpreted according to how the Bible itself defines the world.
Deuteronomy 7:7-8: "The Lord did not set His affection on you (the Hebrews-the Jews-Nation of Israel) and choose you because you were more numerous than other peoples, for you were the fewest of all peoples. But it was because the Lord loved you and kept the oath He swore to your ancestors that He brought you out with a mighty hand and redeemed you from the land of slavery, from the power of Pharaoh king of Egypt."
God's oath to His chosen people: "
Then Abraham with his son they came to the place of which God had told him. And Abraham built an altar there and placed the wood in order; and he bound Isaac his son and laid him on the altar, upon the wood. And Abraham stretched out his hand and took the knife to slay his son. But the Angel of the Lord called to him from heaven and said, “Abraham, Abraham! “Do not lay your hand on the lad, or do anything to him; for now I know that you fear God, since you have not withheld your son, your only son, from Me. I swear by myself, declares the Lord, that because you have done this and have not withheld your son, your only son, I will surely bless you and make
your descendants as numerous as the stars in the sky and as the sand on the seashore. Your descendants will take possession of the cities of their enemies, and through your offspring all nations on earth (not just the jews but also God's chosen gentiles) will be blessed, because
you have obeyed me.” (Gen. 22: 9-18)
Abraham was a type of what God the Father would do. God would offer up His One and Only begotten Son to save his people from their sins. (Matt. 1:21)
God has a remnant chosen from all the nations of the world. God makes his choice. According to scripture not everyone is chosen. But we do not know who they are. It is by God's sovereign choice. So Christians are commanded to go and make disciples of all nations. Preach the Word to everyone, as Charles Spurgeon said. Though we do not know who God is going to call from darkness to light and from death to life. Therefore go into all the world and preach the gospel. His chosen people will respond and be rescued from darkness to light and from death to life. Jesus Himself said, "No one can come to me unless the Father who sent me Draws them." (John 6:44;65) Example: Israel was chosen by God to inhabit the land, not the Cannities.
In Deuteronomy 20:16–17, God commanded the Israelites, “In the cities of the nations the Lord your God is giving you as an inheritance, do not leave alive anything that breathes. Completely destroy them—the Hittites, Amorites, Canaanites, Perizzites, Hivites and Jebusites—as the Lord your God has commanded you.” A similar command is given concerning the Amalekites in 1 Samuel 15:2–3. Why would God have the Israelites exterminate entire groups of people, women and children included? (Why would God command such a thing? God knew if they did not they would be corrupted by the people in this land. which eventaully did happen; Judges 3:7-8; 21:25; Ps. 106:37-38 Numbers 33:55)

God sent Israel to the land of Canaan to judge the Canaanites for their abominations. The Canaanites were a brutal and wicked culture that frequently engaged in incredibly decadent behavior. Leviticus 18 provides a list of sins that Israel was to avoid at all costs: incest, child sacrifice, homosexuality, and bestiality. All these sins were practiced by the people of Canaan: “This is how the nations that I am going to drive out before you became defiled. Even the land was defiled; so I punished it for its sin, and the land vomited out its inhabitants. . . . All these things were done by the people who lived in the land before you, and the land became defiled” (Leviticus 18:24–27).
In ordering the destruction of the Canaanites, God enacted a form of corporate capital punishment on a people that had been deserving of God’s judgment for some time. God had given the Canaanite people over 400 years to repent (Genesis 15:13–16). Then came judgment day. God could have used any means to destroy the Canaanites, but He chose to use the Israelites as the instrument of judgment. This method not only rid the world of an evil and deeply depraved society, but it also provided a ready-made home for God’s chosen people, the Hebrews.

The Canaanites knew what was coming and had heard of God’s awesome power (Joshua 2:10–11; 9:9). Such awareness should have prompted their repentance, but they remained resistant to God. The Canaanite Rahab was saved, and so was her family, and they are proof that the Canaanites could have avoided destruction if they had repented (Joshua 2). No person had to die. God’s desire is that the wicked turn from their sin rather than perish (Ezekiel 18:31–32; 33:11).
God instructed Israel to destroy the Canaanites to eradicate their evil influences, as seen in Deuteronomy 7:23, where it states that they should be completely destroyed. The command to conquer and destroy the Canaanites was part of God's plan to deliver the nations over to Israel, as detailed in Deuteronomy 7:23-24. But the Lord your God will deliver them over to you, throwing them into great confusion until they are destroyed. He will give their kings into your hand, and you will wipe out their names from under heaven. No one will be able to stand up against you; you will destroy them.
These commandments reflect God's desire to cleanse the land of evil and establish His people as its inhabitants.
It is by God's choice that anyone is in His kingdom. God reaches down from out of heaven and regenerates a cold, corrupt, rebellious, dead heart to believe God's truth. (Eph. 2:1-5) One is born again, that is born from above. God regenerates a heart to believe. It is not because God saw sometime good in us. For only ONE is good. And that is God alone. (Mark 10:18) He does the choosing. He saves His people because of his mercy, not because of the righteous things we have done. For there is no one righteous, no not one. No one who understands. No one seeks after God. All have turned away. They have together become worthless. No one does good. No not one. (Romans 3:10-12)
He (Jesus) was in the world, and the world was made through Him, and the world did not know Him. He came to His own, and His own did not receive Him. But as many as received Him, to them He gave the right to become children of God, to those who believe in His name: who were born, not of blood, nor of the will of the flesh, nor of the will of man, but of God. (John 1:10-13)
How does one receive Christ Jesus? By grace through faith and not of themselves. It is a gift of God, not of works, lest anyone should boast. For we are His workmanship, created in Christ Jesus for good works, which God prepared beforehand that we should walk in them. (Eph. 2:8-10)
The verse emphasizes God's unconditional love and the gift of salvation through Jesus Christ. It is important to understand that this love is not a license to sin but a call to live a life of faith and obedience to God. The verse is often used to encourage believers to love the world and others, but it also serves as a reminder of the importance of maintaining one's faith and not allowing worldly influences to overshadow one's spiritual journey. We love the world and those who are lost in it for we who are saved understand the eternal fate of those who reject the God of Scripture. We don't know who God will call so we proclaim the gospel to all. And God's chosen will respond to His truth.
Many in the modern day evangelical world believe when it comes to foreknowedge God looks down the corridor of time and sees you in your own strenght and by your own making a so called decision for Christ. Honestly the only thing you as a human being can make a decision about is to sin. I had a well know teacher/preacher say to me, "we sin because we like it." Very true and very damning. Jesus said you are either a slave to sin, or a slave to God. THERE IS NO MIDDLE GROUND! And the apostle Paul said that before God's regeneration of His chosen people, before they are born again, born from above, you are slaves to sin, following the course of this fallen world, the prince of the power of the air, the spirit that works in the sons of disobedience, fulfilling the desires of the flesh and of the mind and were BY NATURE children of God's wrath. (Eph. 2:1-5)

Our natural hearts are at enmity (hatred) of God, we want to have it our way. We are in rebellion to a Holy and Righteous God. And any one who tries to tell us otherwise are deemed a bitter enemy to the sinful life one wants to live. By their own choosing. Unhindered by the God who wants to have us as His own. In simple terms we want to have it our way. Not God's way. God is an enemy we want Hushed. Erased. Forgotten. And it is no way for a lost person, with a cold, dead spiritual heart to want God. Let along be a slave of God. People want a god of their own choosing. That they may continue in their sinful lifestyle. Unless God is working in a persons heart, drawing them to Himself, to his Son Jesus, a person is still dead in trespasses and sins. A child of God becomes such by grace through faith---AND NOT OF OURSELVES....It is a GIFT OF GOD not of works...lest anyone should boast. God reaches down out of heaven to call his own, known before the foundation of the world. (Eph. 1:4)
As for God's foreknowledge: God does not know future events and human actions because He forsees them; He knows them because He wills them to happen. (Job. 14:5; Ps. 139:15-16) Thus God's foreknowledge is an act of His will. (Is. 41:4; /Rev. 1:8, 17;21:6) In Romans 8:29 and 11:2 the apostle Paul's use of the word "Foreknew" means "chose" or "to set special attention on." The electing love of God, not forsight of human action, is the basis of His predestination and salvation. (Rom. 8:29-30; 33) This same idea is used to express the nation of Israel's special relationship with God. (Acts 2:23;Rom. 11:2; 1 Peter 1:2;20) In other words he foreknew you because God chose you.
Hence you are either a slave to sin or a slave to God. Not my words but the very words of God's One and Only Son. The only name under heaven by which anyone is saved. From God's everlasting wrath, His punishment for sin, and unto everlasting life in the presence of God and the glory of His power.
If God is moving you to believe this truth, His truth, His Son, His Word who was in the beginning with God and was God...."We then, as workers together with Him also plead with you not to receive the grace of God in vain. For He says:“In an acceptable time I have heard you, And in the day of salvation I have helped you.”Behold, now is the accepted time; behold, now is the day of salvation."(2 Cor 6:1-2)
(Information on why God destroyed cannan taken from Got questions; verses compiled taken from various scripture)
Note: as for us not loving the world. It means we are not to participate in the sinful lifestyles that the world condones, encourages, and practices without any thought of retribution from a holy and righteous God. (Romans 6) We are to be Holy because God is Holy. God's people are called out; to be a light shining in a dark and sinful world. As Jesus said let your light so shine before men that they may see your good works and glorify your Father in heaven. (Matthew 5:16)
Examine yourselves as to whether you are in the faith. Test yourselves. (2 Cor 13:5)
But also for this very reason, giving all diligence, add to your faith virtue (moral purity), to virtue knowledge, (of Gods Truth) to knowledge self-control (avoiding sinful practices) , to self-control perseverance (in our Christian walk), to perseverance godliness, (God the Son as our example) to godliness brotherly kindness, and to brotherly kindness love.(agape=the kind of love God exhibited for the world of sinful mankind--sending forth His Son to die in our place to save us from our sins and to everlasting life--loving the lost in spite of mankinds rejection of God) For if these things are yours and abound, you will be neither barren nor unfruitful in the knowledge of our Lord Jesus Christ. For he who lacks these things is shortsighted, even to blindness, and has forgotten that he was cleansed from his old sins. Therefore, brethren, be even more diligent (work hard at it) to make your call and election sure, for if you do these things you will never stumble; for so an entrance will be supplied to you abundantly into the everlasting kingdom of our Lord and Savior Jesus Christ. (2 Peter 1:5-11)