Possibly 1980's sci-fi book about religous order who turn out to be colony settlers battling "demons" that have limited teleportation...
Desendants of a religous order on an alien planet are battling "demons" who turn out to be aliens stranded on the planet with the humans. The main character discovers that the old human interstellar ship is gutted and that the religious sect's ship was armed and shot down another unindentified alien ship, stranding both on the planet. The aliens have been trying to get to the remains of the human ship believing that they can use it to leave the planet, IIRC.