For babies the biggest danger is rolling off the edge of a bed, or changing surface. For toddlers it is more about falling from furniture or down stairs.
Make sure baby cannot roll off any surfaces, put pillows around them. Do not put a bouncing cradle or car seat on a surface where they could wriggle off.
Use stair gates for toddlers. Make sure balconies are locked and fit restrictors and safety locks to windows.