Less than a week ago, Maj. Gen. Yifat Tomer-Yerushalmi was the Israeli military’s top lawyer, tasked with enforcing the rule of law within the nation’s armed forces.