He that wrestleth with a turd shall be beshitt fall he over or under.

James Howell (c. 1594–1666) Welsh historian and writer
Paroimiographia [Παροιμιογραφία]: Proverbs, or, Old Sayed Sawes & Adages, “English Proverbs” (1659) [compiler]
    (Source)