PI staining exploits the integrity of the cell membrane. In live cells, the intact cell membrane prevents PI from entering, whereas in dead cells or cells undergoing apoptosis, the compromised membrane allows the dye to penetrate the cell. Once inside, PI binds to DNA and fluoresces under specific wavelengths of light, making it detectable via flow cytometry or fluorescence microscopy.