Thats how you are deceived. You confused about world in scripture usage. Theres a World God so Loved and gave Christ for Jn 3:16 then theres a world Christ would not pray for, showing is wasnt the object of His Love Jn 17:9.
The world that Christ loved, His Church Eph 5:25 is the world that God will not charge with sin 2 Cor 5:19, the world Christ refrained from praying for, is the condemned world of 1 Cor 11:32.