What age can you put bumpers on the crib?

Afraid baby will get legs caught between crib rails. When can I put the bumpers on?