Complaining about, though it’s for your own protection (7)
I believe the answer is:
railing
'complaining' is the definition.
(railing is a kind of complaining)
I don't understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for railing that I've seen before include "Gin lair (anag.)" , "Complaining bitterly - barrier" , "Fulminating against the barrier?" , "Noisily protesting" , "Annoying" .)