From a biblical perspective:
James 2:19 “You believe that there is one God. Good! Even the demons believe that—and shudder.”
Matthew 7:21-23 “Not everyone who says to me, ‘Lord, Lord,’ will enter the kingdom of heaven, but the one who does the will of my Father who is in heaven. 22 On that day many will say to me, ‘Lord, Lord, did we not prophesy in your name, and cast out demons in your name, and do many mighty works in your name?’ 23 And then will I declare to them, ‘I never knew you; depart from me, you workers of lawlessness.’
Click here is see why is necessary for salvation and get Why Jesus for free in the sidebar for a more thorough explanation.