When does a baby understand there’s a ledge?

My 14 month old seems to still not be super cautious around ledges. I feel like if I let her on the counter she would just jump right off or if there wasn’t a railing on the stairs she could care less (obviously I’m not doing either of those) she seems decent about climbing off the couch and bed but that’s about it. When does this change?