Here "walk" is a metaphor for how a person lives or behaves. Here "light" is a metaphor for "good" or "right." Alternate translation: "do what is good as God is perfectly good" or "do what is right as God is perfectly right" (See: [[rc://en/ta/man/jit/figs-metaphor]])