The judge questioned why a criminal case was registered against the complainant despite the investigating officer himself recommending action against the suspected illegal immigrant