How can worms be prevented from entering your cat’s system?

How can worms be prevented from entering your cat’s system?