"And these are the ordinances" (Exodus 21:1). This is what Scripture says: "By justice a king establishes the land" (Proverbs 29:4) — this is the Holy One, blessed be He. "But a man of offerings tears it down" (ibid.) — this is Adam, the first man, who was set apart as a heave-offering (terumah). Rabbi Yose ben Qetsartah said: From where do we know that he was set apart as a heave-offering? As it is said, "But a mist went up from the earth" and so forth (Genesis 2:6), and afterward, "And the Lord formed" and so forth (ibid. 2:7) — like that priest's wife who puts water into her dough and afterward takes off the challah-portion. Thus you say, "But a man of offerings tears it down," for the Holy One, blessed be He, commanded him: from this you may eat and from that you shall not eat, and he transgressed the command. What did he bring about? "Cursed is the ground because of you" (Genesis 3:17) — hence, "tears it down."
Adam as Terumah and the Curse on the Ground in Tanchuma
Midrash Tanchuma Buber, Mishpatim 2:1
ואלה המשפטים. זש"ה מלך במשפט יעמיד ארץ (משלי כט ד), זה הקב"ה, ואיש תרומות יהרסנה (שם), זה אדם הראשון, שהופרש בתרומה אמר ר' יוסי בן קצרתה מנין שהופרש בתרומה, שנאמר ואל יעלה מן הארץ וגו' (בראשית ב ו), ואחר כך וייצר ה' וגו' (שם שם ז), ככהנת הזו הנותנת מים בתוך עיסתה, ואח"כ נוטלת חלה, הוי אומר ואיש תרומות יהרסנה, שצוהו הקב"ה מזה אכול ומזה לא תאכל, ועבר על הציווי, מה גרם, ארורה האדמה בעבורך (שם ג יז), הוי יהרסנה.