A child can sleep without rails up to age 6 months. After that, they need to be installed in order to keep them safe.