Everyone goes into law school thinking they will be the one to get high grades, but in my experience, working hard was not well correlated with good grades. Even if you work harder than anyone else, it still somewhat comes down to a coin flip. This can be so frustrating, I cannot even begin to describe it.
Even if you then make it into biglaw (a low percentage), you then need to make partner (an extremely low percentage). This is far more about a) office politics, b) connections, and c) your ability to "rain make" by bringing in big new clients; than about your skill as a practitioner of law.
I would also caution against looking at numbers like salary in isolation. Law is full of unhappy rich people. 36% of the profession suffer from alcohol use disorders, compared to ~12% of the general population. Nearly half experience depression at some point (compared to 15% in the general population, in the stat I was able to locate). It's not a happy field.