how do you know which resonance structure is more stable according to the energy?

does higher energy mean more stable?

Higher energy is equivalent to instability. Energy of a molecule refers to the energy that exists within its bonds. The higher the potential energy within the bonds, the more unstable the molecule. That is, molecules of high energy hope to lose the energy and retain stability in a lower energy conformation.