Pakistan army warns PM Gilani over criticisms