I get the risks: for example probably there is more bot attacks from my IP range (and I'm behind CGNAT anyway) as I live in a less-developed country where people install everything (including pirated software) onto their (generally Windows and Android) devices blindly, with lots of malware.
Then again, the argument still applies: that kind of discrimination (IP-based geoblock because more attacks originate from that IP range) is not so different from skin color discrimination (prejudging, say, dark skin colored people because statistically more dark colored people involve in crime etc.).
I get it, perhaps I admit might even sometimes do it myself (not against skin color, but other factors) but I still think it's wrong.