Shape Up Or Ship Out Meaning

To either improve one's behavior or else be required to leave; to either improve one's performance in an activity or else withdraw from that activity completely.

Example: After his many serious mistakes, the boss warned him that he had to shape up or ship out.