late 14c., "serve up in portions," from mess (n.). Meaning "take one's meals" is from 1701; that of "make a mess" is from 1853. Related: Messed; messing. To mess with "interfere, get involved" is from 1903; mess up "make a mistake, get in trouble" is from 1933 (earlier "make a mess of," 1909), both originally American English colloquial.
[mess etymology, mess origin, 英语词源]