Complex sentence: They infect the larva, pupae, and adults of mealworms which may become black when heavily infected.
Split into simpler sentences: They infect the larva, pupae and adults of mealworms. The hosts may become black when heavily infected.