"And they pleaded with Him that they might just touch the border of His cloak; and all who touched it were cured" (Mat. 14:36). Notice it says ALL. The self-righteous and the wicked had become equal candidates. Struggle with doubt? Irrelevant. Have the wrong theology? Didn't matter. The fact is God is no respecter of persons (Acts. 10:34). You could be the prodigal son, or the prodigal's brother (Luke 15:11-32), a flaming liberal or conservative hypocrite (Mat. 3:7). Having just sinned, or in the middle of sinning (John 8:1-11); even the ungrateful (Luke 17:11-19), who come purely for selfish reasons, offering nothing in return (Mat. 5:3), were welcomed to Him.
Jesus Himself made this promise, "The one who comes to Me I will by no means cast out" (John 6:37b), and He invited without condition other than to come. So how do we come to Him today? Well, the thief, who was also nailed to the cross and couldn't reach Him, and what did he do? He asked. The thief who had just been throwing insults at Jesus (Mat. 27:44) changed his mind and asked to be remembered, and what did Jesus say to him? "Truly I say to you, today you will be with Me in Paradise." (Luke 23:42-43). "For everyone who calls on the name of the Lord will be saved." (Rom. 10:13).