Complex sentence: While silk is spun during all stages, at the last instar, the larvae spins a cocoon of silk for itself, and enters the pupal stage.
Split into simpler sentences: While silk is spun during all stages. At the last instar, the larvae spins a cocoon of silk for itself, and enters the pupal stage.