It does end but i used OnTriggerEnter so if you entered the collider before the cool down ends which i think it was about 0.2s then it isnt considered enterd anymore so the player collider whould have to exit the spike then enter again for you to die.