I would argue that the US law would not allow the president to order strikes like those that have occurred in Gaza on US citizens, but of course IANAL. I don't have any knowledge of what Israeli law allows or doesn't allow though.
It's also worth noting that what someone thinks is legal is not necessarily what someone thinks _should_ be legal; I imagine that almost everyone here has at least some laws that they disagree with, but that's separate from the question of whether the law exists or not.