Ranged enemies shooting into melee from close range is still a huge issue

Title. I will keep pestering about this, because of how devestating it is that ranged enemies stand maybe 10 feet away from you while you are engaged in melee and still shoot you - or deliberately walk out of your melee range, take out their ranged weapon and start shooting you. This just can’t be intentional.