Bro, with regards to being unpopular amongst it's neighbors, Iran is no stranger to that.
People here do have a tendency to give knee jerk reactions, however, our Iranian brothers are also rather quick to make inflammatory statements.
Pakistan is trying to protect its immediate interests in the neighborhood, that's why you seldom see Pakistan meddling in affairs of far off states. Iran, on the other hand, is actively engaged in funding proxies and civil discord in multiple countries, even with countries it shares no border with.
Pakistan, unlike Iran, does not have the luxury of oil revenue. So it has to act more judicially whilst still trying to achieve its basic goals. You will rarely hear Pakistani government officials saying anything against Iran, however, the opposite isn't as true, unfortunately.