Classical dynamics is not strictly necessary for understanding QM at this level. You would work with the Lagrangian and Hamiltonian formalism when you start QFT (specifically, the S-matrix, Feynman's rules, etc.). But here you would need to know what the Hamiltonian is. If you have done these in edX, you can proceed to Sakurai.
Electrodynamics might be necessary at a preliminary level. It will be good if you know Maxwell's equations, and how to write the E and B fields in terms of the scalar and the vector potentials. It might also help to know something about gauge transformations, but these are not absolutely necessary.
You don't need statistical physics for Sakurai (or Griffiths).
Let me share an advice that a professor I know told me once. He said that it is not always possible to keep on doing maths and pause physics completely, because any physicist would be bored. He said that if you get stuck at some topic, pause your current reading, read up that topic from another book, and continue with whatever you were reading. Although he said this for maths related to physics, you can easily extend this to your case as well. For example, if you get stuck with electrodynamics, stop and read it up from some book or lecture, and then return to what you were reading.
Unless you actually start with the book, you will not be able to understand what you really need. It is like fidgeting with the steering wheel but not letting your car move - you will not be able to understand how much you have to steer unless you actually let the car move slowly.
I found these lectures very useful when I was studying at your level:
Quantum Physics by Prof. V. Balakrishnan (NPTEL)
Classical Physics by Prof. V. Balakrishnan
In the second link, you will find some lectures where he talks about classical electrodynamics. You can study from those before or while doing Sakurai. In fact, these lectures are gold mines. I recommend Prof. Balakrishnan's lectures to anyone who is interested in physics.