Top tips to stop your baby / toddler falling out

When to change from a cot to a bed?