>>936748940
One is an act of terrorism, another one is a military operation. To distinguish one of the other you check whether the violence is targeted towards a military objective and the casualties are kept as small as possible (but not any lower) and that they are proportional to the military goal.
Additionally, Israel has made peace with several of its neighbors and will do it again as long as there is a partner for peace in Palestine. There isn't one.