Personality Feedback From A Professor?

I wanted to get feedback:

I'm in my 30s and trying to finish a Master's Degree. I literally had all A's in my field until last fall. I told one of my professers that I have autism (Asperger's). I got an email from her saying that I can't use my disabilty (austism) as an excuse when I socially miscue in class. I told her I had autism because I do social miscue at times and didn't want to be misunderstood. Is she allowed to say that to me? Is that legal? I've been trying to figure out how to grapple with this, as no one I work with has had a problem with my being "off" at times and most people usually look past my social miscues. I'm over my head in dealing with this professor though. Does anyone have any experience with this? I have had no help or support from the university on the issue and I feel like I'm in over my head. Thanks ahead of time for any help any of you can provide.