Child bed with safety protection