Photonic structures offer unique opportunities for controlling light-matter interaction, including the photonic spin Hall effect associated with the transverse spin-dependent displacement of light that propagates in specially designed optical media. However, due to small spin-orbit coupling, the photonic spin Hall effect is usually weak at the nanoscale. Here we suggest theoretically and demonstrate experimentally, in both optics and microwave experiments, the photonic spin Hall effect enhanced by topologically protected edge states in subwavelength arrays of resonant dielectric particles. Based on direct near-field measurements, we observe the selective excitation of the topological edge states controlled by the handedness of the incident light. Additionally, we reveal the main requirements to the symmetry of photonic structures to achieve a topology-enhanced spin Hall effect, and also analyse the robustness of the photonic edge states against the long-ranged coupling.