Well, Iran attacked Pakistan in January 2024 for no reason other than to tell it's own citizens that it's not afraid of attacking a nuclear popular.
The Pakistani response got their senses working again.
However, it doesn't stop Israel in the future from pulling a stupid stunt against Pakistan like they did with Qatar. India has done it twice now (2019 & 2025) just to get political mileage.
I guess it's best to be prepared instead of having to
run around the world like a headless chicken afterwards.