The meaning is to deal with a problem before it grows worse. There are a lot of variances to the expression, 'cutting it off at the head'
'Nip it in the bud'
'Cutting the problem at it's roots'
They're all references to killing something before it grows more difficult to deal with.