The Afghan government warned Iran on Wednesday against "irresponsible comments" following Tehran's criticism last week of an upstream dam being built by its neighbour.