Protection of edge transport in quantum spin Hall samples: spin-symmetry based general approach and examples