When a Jew performs a Mitzvah with his full heart's desire this Mitzvah is a clear-cut "Mishpat" as far as he is concerned; when a Jew performs a Mitzvah without any excitement, the Mitzvah is a "Chok" (edict).
Ideally, the Jew should start performing Mitzvoth as edicts even without feeling any excitement. He should gradually perform more and more Mitzvoth until he feels totally immersed and attached to the Almighty, building up more and more excitement as the connection grows. Subsequent Mitzvoth are then performed as "Mishpatim".
This ideal path should apply as well to the young child, who should initially perform the Mitzvoth with no excitement, as edicts which he does not understand.