It isn't that hard until they start to blur. Elves and goblins and magic, fantasy. Space, spaceships, technology, and aliens, sci-fi.

You could argue a lot of semantics but the majority of fantasy and sci fi books are not blending the two.