Israeli army's top lawyer warns against moves harming courts