calm down no one ever threatened to attack Pakistan. Saying that we will target terror groups operating from Pakistan if Pak gov and army don't take any actions is NOT called threatening to attack Pakistan. And don't forget, it came to this stage after dozens upon dozens of such incidents since 2005, it wasn't the first time.
Pakistan can say the same. They can say it will target groups it is claiming are based in Iran if Iran doesn't take action and I wouldn't consider that an invasion threat. In fact, if that is proven to be true, what Pakistan claims, and if Iran doesn't take action, I give Pakistan every right to strike at will against targets in Iran.
But don't forget what I said above: