Heisenberg Uncertainty Principle
We can reduce the diffraction angle if we reduce the wavelength (and hence increase the frequency and the energy of the photon).
But if we do increase the energy of the photon, the photon will hit the electron harder and make it move more from its location, which will increase the uncertainty in the momentum of the electron.