The structure having more covalent bonds in a resonating structure, has more stability, Further, there is charge separation in structure (II) and the terminal carbon has only a sextet of electrons in (II). These two factors makes structures (II) less stable.
Hence, `I gt II` in terms of stability