October 7th being an illegal attack justified a military response from the Israeli Defense Forces to secure their border, and most of the world agreed. Opposition solidified when IDF conducted mass destruction of civilian structures and independent observer-corroborated systematic murder of noncombatants, many of whom were children.
While two wrongs don't make a right, it's justified to support a people who are the victims of a genocide according to credible observers.