It won't be the last time you don't get an A. I made about 5 A's in my entire law school career after making probably less than 5 B's during my previous academic experience. It's hard to accept that you aren't the smartest person in the class any more, but the sooner that you do accept that fact the easier it will be for you to come to terms with not making the absolute top grades.
Have you read Getting to Maybe? If you're putting all this work, you might not be studying smart. Don't underestimate the utility of a tactical change.