My son climbed out of his crib at 16 months, but like another poster, instead of climbing out, he just sorta jumped over the rail head first (as I happened to be there when he did it twice). Problem was that we were renovating at the time and what is now my kids' bedroom was not completed at the time and the room they were in was not big enough for a twin bed and the other bedroom was already converted to a playroom. Plus my daughter was still in a toddler bed at the time, so we planned to give him that and just buy her a new bed, but again, no room at the time. So we were sorta stuck. I made it very clear that he could not jump out like that anymore, that he had to wait and call me to come get him, and it actually worked, much to my surprise.
Anyway, in April when he was 20 months (so 4 months later), the new bedroom was finished, my daughter's twin bed arrived, and we moved our son into the toddler bed. We stuck a gate at the door, did the same routine as the crib, and that was that. He did get out in the beginning, maybe a week total, but I think it was less, but I stayed nearby so I could walk him back immediately so he got the point.
But the real thing I came on to suggest was an alternative to the bed rail. For my daughter's bed we bought a foam pool noodle to put under her mattress cover. If she rolls to the edge, it acts like a bumper, but isn't the fun climbing wall a rail would be for her brother (they share a room). She never rolled out of the toddler bed so we didn't think the real bed would be an issue, but she fell out once, and it's high cause there are drawers underneath, and the floor is wood. Since we put the noodle in, she hasn't rolled out once, nor has our son when he sleeps in there with her.
To the poster who changed the lock on the door, syrreal, just be careful! We did that on our kids room too cause my son locked himself in once. But then just days after I switched the lock around, I was putting my kids to bed and my son shut the door and apparently locked it before he closed it. So I was locked in their bedroom with both kids, and my husband was working overnight. They have a French door to their room, so I contemplated breaking a pane of the glass to get out, but decided it was not worth it, so I just stayed in there from 7pm till my husband came home at 8am the next day. Not fun at all!