21 “Not everyone who says to me, ‘Lord, Lord,’ will enter the kingdom of heaven, but only the one who does the will of my Father who is in heaven. 22 Many will say to me on that day, ‘Lord, Lord, did we not prophesy in your name and in your name drive out demons and in your name perform many miracles?’ 23 Then I will tell them plainly, ‘I never knew you. Away from me, you evildoers!’
The heavies of this passage sound like a Pentecostal road-show. Could folks of that ilk either lose their salvation or not have it in the first place?
This is cast as a pro-Arminian passage, but it need not be such.
Let's look at prophesy first. At least in the 20th and 21st century church, a lot of what passes for prophesy in charismatic churches isn't all that prophetic in that it isn't saying anything new. "I am your God, you are My people" type utterances, which paraphrase a Psalm or a Gospel passage, can be created by someone whose hung out in enough Sunday School classes and has been in a "Spirit-filled" church long enough to get the flavor right.
That doesn't make those "false prophecy" in the sense that it's bad theology. It could be perfectly good theology, but coming from human creativity rather than inspired by the Holy Spirit. That would be one example of where modern-day prophecy doesn't run afoul of Sola Scriptura, since it merely rephrases scripture rather than adding to it or contradicting it.
What about the demons and the miracles? One possibility is that they weren't demons and miracles in the first place. The demons might have been figurative and delivered by some good applied psychology, and the miracles might have been relief from sporadic issues that benefited from a placebo effect. We've seen quite a few "healing ministries" that don't hold up where when those miracles are fact-checked by doctors, so a combination of mundane effects and hyperbole might explain the prospect of an unsaved "miracle-worker."
Or... the miracles could be real and it's truly the Holy Spirit doing the work, despite an unsaved vehicle merely putting on a show. God used Baalam's donkey to deliver a message, and he uses jackasses to do His work from time to time even to this day.