don't go doing something

don't go (doing something)

A warning that one not do something. If you go skateboarding today, please don't go getting yourself hurt.

don’t go doing something

(spoken) used to tell or warn somebody not to do something: Don’t go getting yourself into trouble.
See also: something