You're focusing on the action, not the intent. One person is attempting to deliberately harm others for their own gain. The other is attempting to defend their life, liberty, and property.
I'm not saying "shooting someone is isn't justified because someone else is doing it", I'm saying "assault and aggressive violence isn't justified because someone else is doing it"
I'll try saying it again with a hypothetical example
Someone tries mug you, you disarm his knife, grapple, and manage to subdue him. The fall to the ground seemed to have made him unresponsive and you check his person for other weapons. Finding none, you tie his hands together and call the police while watching carefully.
This is justified. You used the appropriate force to render the threat neutralized. Realistically, you won't know what the appropriate force is, so there is an element of discretion and it can be understood that you would want to err on the side of safety - i.e. shooting someone to kill if they have a gun aimed at you, rather than trying to hit a non-lethal shot because you don't want to kill him.
Where you draw the line is when you are no longer in danger. It is not your job to dispense justice or retribution, it is actually illegal (at least in the US) for the reason that it would get out of hand. The entire purpose of laws, lawyers, and a legal structure is to make sure justice treats everyone equally and to ensure the purpose of justice is the criminal serving penance, not the victim getting revenge.
Going back to my previous example, if you, having subdued that person, continued to hit them, stole everything they had, and ran off leaving them unconscious and bruised, you have crossed a line. Your actions were no longer with the intent of defending yourself, but in seeking vindication. You decided "he started it, so this is fair". You took it into your own hands to decide what this person deserved for their crime. That's not your responsibility, we have people who are selected as part of a system we all participate in (the government) who decide what someone deserves for their crimes.
Realistically, in a life or death situation, you can only punish someone so much for what they did because their life is literally on the line. And to that end, the legal system has a lot of ways to consider that, and its own rules for what is considered out of line. But that isn't relevant to how this applies to League.
(I know you're not OP but I'm using him as an example because this is his thread)
"Garen you're a %%%"
"Garen you're a piece of shit"
This isn't self-defense. This is just throwing more shit on the pile. More than 9 out of 10 times people say that they were "just defending themselves" the chatlog doesn't look like defense. It doesn't look like neutralizing the threat and moving on. In fact, a good portion of people who complain about their ban say that they had to prove something or had an issue with someone's attitude.
Just like how in real life it's not your job to decide what someone deserves for their behavior, in Leauge it's not your job to decide what someone deserves for their behavior. Furthermore, flaming on League far from a life or death situation. As far as defending yourself, considering your actual livelihood isn't in danger, you're either defending yourself from the distraction of their chatter or if they say something accusatory of you. In the former, you can simply mute them. In the latter, you simply deny their claim without saying anything inflammatory or aggressive and then don't reply more if they try to antagonize you. In my opinion, there is a clear difference in chat between defending yourself and fighting back.
How often have you had 2 or 3 people flaming each other and wanted them to just shut up and play? How often have you cared about who was right? Do you think you cared about who was right as much as each of them did? If you're defending yourself to the point where a third party can't tell who's right, or in the case of League, doesn't care and wants you to get over it, then you're just as much a part of the problem. You don't get anywhere fighting fire with fire.
Please keep in mind I'm not specifically accusing you of any particular behavior. I'm just saying what I usually see people getting banned for while complaining that they were just defending themselves, and it sounds like OP is in this category. Many of them even present the argument "they flamed me first" as if that justifies them being inflammatory back.
No, justifying your behavior because someone else did it first is never a valid excuse.
This is what I said and it still applies. Maliciously harming someone and stealing their properly because they tried to do it to you is wrong. Insulting, flaming, and spitting hate at someone in a League game to the detriment of up to 9 other people in a match because they started doing it to you is wrong.
In real life, it can be more blurred, and we have a lot of laws and lawyers to help settle that. But in a League game, it's much more obvious when someone is more concerned with proving themselves right than they are concerned with playing the game. Riot also makes the rules for a league game, and it's their job to decide what people deserve for their behavior.
Fundamentally, Riot agrees that someone else being a jerk doesn't give you the right to be a jerk back.