The scripture is plain and simple just as Grace put it, the five foolish virgins were/are not part of the Church, as in verse (12) below Jesus clearly steates (I Know You Not) "Unsaved", they didn't make the cut!
The parable represents the saved and unsaved being mixed together, and only half were genuine believers.
You think the phony faith healers, practicing homosexuals, fornicators, adulterers, playing church are gonna make the cut?
Jesus is coming for his bride without spot and blemish!
Matthew 7:22-22 below is a parallel, many will cry they knew Jesus through good works, he will deny them, just as the five foolish virgins.
(I Know You Not)
Matthew 25 King James Version (KJV)
25 Then shall the kingdom of heaven be likened unto ten virgins, which took their lamps, and went forth to meet the bridegroom.
2 And five of them were wise, and five were foolish.
3 They that were foolish took their lamps, and took no oil with them:
4 But the wise took oil in their vessels with their lamps.
5 While the bridegroom tarried, they all slumbered and slept.
6 And at midnight there was a cry made, Behold, the bridegroom cometh; go ye out to meet him.
7 Then all those virgins arose, and trimmed their lamps.
8 And the foolish said unto the wise, Give us of your oil; for our lamps are gone out.
9 But the wise answered, saying, Not so; lest there be not enough for us and you: but go ye rather to them that sell, and buy for yourselves.
10 And while they went to buy, the bridegroom came; and they that were ready went in with him to the marriage: and the door was shut.
11 Afterward came also the other virgins, saying, Lord, Lord, open to us.
12 But he answered and said, Verily I say unto you, I know you not.
13 Watch therefore, for ye know neither the day nor the hour wherein the Son of man cometh.
(I Never Knew You)
Matthew 7:22-23KJV
22 Many will say to me in that day, Lord, Lord, have we not prophesied in thy name? and in thy name have cast out devils? and in thy name done many wonderful works?
23 And then will I profess unto them, I never knew you: depart from me, ye that work iniquity.