Being a student doesn't automatically mean you're defenseless.  Granted, a fight with one of the more elder demons would likely end in their victory, but fleeing is never out of the question.  It's not like demons have any honor to uphold.  Cowardice and deceit are in their repertoire of qualities.