***Neither a teacher nor a native speaker.***
I'm not sure whether it is a British or an American idiom.
However, according to my dictionary the full version is:
Cobbler, stick to your last!
People say that to persons who do or say things although they have no knowledge about that topic.
Let's say I try to teach you French (although I know nothing) and you say that expression to me