Inseparable from
出则悌 (abroad, be respectful to elders).
入/
出 here = at home / outside home.
则 = then, in that case. Confucius's sequence: family virtue first, public virtue next, study of texts last. The defining line of traditional Chinese moral education.