This problem is very simple, just analyze it from the perspective of word creation.
Male
Word formation method: knowing. Congtian, Congli. It means working hard in the fields.
Original meaning: man, opposite to "female"
"Shuowen" explains this: male is also a husband. From the field to the force, it means that the man exerts his force on the field.
Obviously write the word "田" first and then "Li". With 7 strokes, there is no need to argue.
"Write the word "日" first and then the word "Li" is a mistake. In fact, it is not just the word "male" that is wrongly written. Many people also write the words "risk" and "kao" incorrectly. If you are interested, take out the pen and give it a try, everyone.
(Due to a typo, this answer has been modified. Thanks to "Autumn Water_Is Coming" for its support)