Honestly, your friend's response frustrates me. Being autistic and having difficulty understanding social situations is not just some excuse, it's literally part of being autistic. Sure, work on it all you want, but if you're autistic there will never be a point in your life where you can intuitively know a person is feeling some type of way. You might be able to tell something is different, but knowing what is actually going on is much more difficult (it's difficult for everyone, but so much worse for autistic people)
Your friend might as well be telling you to learn how to fly. The best you can do is notice there is some change in their behavior and ask what's up. There are some obvious indicators like crying, but even that can be an expression of various emotions. You can try to understand the context, but most likely the things you think are important aren't even relevant.
The real solution here is when your friend needs more support, they should ask for it. They shouldn't lash out at you after the fact, they should ask. If they can't do that because their autism gets in the way, then they should understand that you also have trouble recognizing their distress if they can't even express it clearly.