I read this repeatedly in the Qur'an,
[9:109] Is he, then, who has erected his structure on the fear of Allah and His good pleasure better, or he who erects his structure on the brink of a crumbling bank, so that it crumbles down with him into the Hell-Fire? Allah does not bestow His Guidance on the wrong-doing folk.
In a theological sense, compared, for example, to Jesus saying 'Those who are healthy don't need a physician but the sick do', how does one become guided from sinning to becoming a Muslim? If Allah doesn't guide wrong-doers, how are they led off a path of wrong-doing etc?
Misunderstanding can lead to wrong doing while thinking it is right doing.
"Who doth greater wrong than one who invents falsehood against Allah, even as he is being invited to Islam? And Allah guides not those who do wrong". Quran 61:7
"There is among them a section who distort the Book with their tongues: (As they read) you would think it is a part of the Book, but it is no part of the Book; and they say, "That is from Allah," but it is not from Allah: It is they who tell a lie against Allah, and (well) they know it!" Quran 3:78
"Those who listen to the Word, and follow the best (meaning) in it: those are the ones whom Allah has guided, and those are the ones endued with understanding". Quran 39:18
To help determine guided:
A muslim is equal to an unbeliever if they are not able to recognise the speech of all the other messengers around the world.
As it says in the Quran:
"Those who deny Allah and His messengers, and (those who) wish to separate Allah from His messengers, saying: "We believe in some but reject others": And (those who) wish to take a course midway,-
They are in truth (equally) unbelievers; and we have prepared for unbelievers a humiliating punishment.
To those who believe in Allah and His messengers and make no distinction between any of the messengers, we shall soon give their (due) rewards: for Allah is Oft-forgiving, Most Merciful". Quran 4:150-152
So misunderstanding the message can lead to wrong doing.
While understanding all messengers can lead to right doing.