October 7th was a valid reaction to people violently stealing your land and killing your families. The Palestinians had even tried a peaceful March of Return only to have the IDF snipe over a thousand people.
Israel is not a legitimate state, and never has been.