But it is our best effort. I don't think even an abstract concept of justice is served by taking into account political motivation for your actions unless you apply the principle blindly. Do you think someone spraying right-wing slogans like "deport all migrants" or "traitors" or just "fuck you" on RNLI buildings should be off the hook because they think there's an existential threat to the country from a trickle of refugees? Do you think they should be allowed to bring up those beliefs in court?
Besides assigning consequences to bad actions, justice must in the first instance be fair. I see no fair way to privilege motivations that I sympathise with (anti-Israeli-genocide) but not ones that I find detestable (anti-immigrant).