used to tell or warn sb not to do sth
don't go doing sth
Don't go getting yourself into trouble.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition