I suggest that you prime the legs before final assembly. The surfaces of the legs will oxidize if not protected. The exposed surfaces can be final painted after final assembly.
If you don't paint before final assembly' at least use generous amount of grease around where they insert into the fuselage. Once that area gets sealed up it difficult to access and corrosion is to be avoided.