means that
people should avoid making authoritative judgments on matters beyond their expertise. A last is the form on which a shoe is made.
Imagine a case where one should do the work one is expert at or familiar with rather than trying something different and risking failure.; then “The cobbler should stick to his last” fits well.