wa alaykum salam
If we just look at the previous ayah we can see who those people are that Allah warns about the fire.
"So keep to the right course as you have been commanded, together with those who have turned to God with you. Do not overstep the limits, for He sees everything you do.
And do not incline towards the wrong-doers lest the Fire might seize you and you will have none as your protector against Allah; and then you will not be helped from anywhere" (11: 112-113)
Allah (swt) warns His slaves who follow His prophet and try to stay on the right path as He (swt) commanded them to do. He tells them (and tells us inshaAllah) not to have any inclinations for the actions of sinners which cause them to go astray. We should inshaAllah set our personal boundaries with them (wrong-doers) reasonably.
"Still there are some who take others as Allah’s equal—they love them as they should love Allah—but the ˹true˺ believers love Allah even more. If only the wrongdoers could see the ˹horrible˺ punishment ˹awaiting them˺, they would certainly realize that all power belongs to Allah and that Allah is indeed severe in punishment." (2:165)
"You who believe, do not take My enemies and yours as your allies, showing them friendship when they have rejected the truth you have received, and have driven you and the Messenger out simply because you believe in God, your Lord––not if you truly emigrated in order to strive for My cause and seek My good pleasure. You secretly show them friendship––I know all you conceal and all you reveal–– but any of you who do this are straying from the right path." (60:1)
"You who believe, do not take as allies those who ridicule your religion and make fun of it- whether people who were given the Scripture before you, or disbelievers- and be mindful of God if you are true believers." (5:57)