They are not parties considering Israel illegitimate nor are they calling for the destruction of Israel. They are parties calling for a two-state solution, and consider the globally-recognized-as-illegal settlements as illegitimate i.e. they call the ever expanding borders of Israel as illegitimate.
If you were to make them illegal, you're basically legally disenfranchising 25% of Israel's population.
If you were to make them illegal, you're basically legally disenfranchising 25% of Israel's population.