Fact check: Origin stories for popular phrases are urban legends
In English pubs, ale is ordered by pints and quarts.. So in old England , when customers got unruly, the bartender would yell at them 'Mind your pints and quarts, and settle down.' 
It's where we get the phrase "mind your P's and Q's."