Hint: GuntStats, Not GetRange, literally it's not that.
Try looking at GetEffectiveness
Credit me if it works
GunStats-GetEfectiveness
There is a cap on how much range you can increase, it seems to be 755, going further than that will crash the game when you shoot (the cap is different for each type of weapon)