It is completely consistant with other scriptures that these ones Jesus is talking to considered themselves christians but didn't "behave" like a person who has the indwelling Spirit enabling them...they remain carnal (2 timothy 3:1-5 these behaviours are happening in the christian congregation...brother against brother) and because of that they were cast off as goats And not inheriting the kingdom that was promised to those in the covenant.
If people can enter the kingdom by treating the brothers of Jesus Christ well then the core gospel message, "come to Me"... is largely irrelevant.
love michelle