Mahapanchayat threatens to take legal recourse