They have their own tensions with Pak and are not happy about shia genocide in Pak?
All this pressure from three sides against Pak, but Pak still able to answer all three with
military action something India can learn from them.
On this point we may be looking at it from a wrong perspective.
The reason paki military are able to open three fronts at the same time is because they are not accountable to a democracy, on the other hand afghan,Iran and us have their militaries accountable to our respective democracies.
This is not a level playing field, in a way pakis hold an upper hand in this regard. If paki army wants to initiate any actions, they don't need to approach their government.
It's a matter of survival for paki army, survival in its current form.