Pokemon R,S,E Ledge glitch

First, go to Sootopolis, then go to the right side. Then head to the second highest stars on that side. Walk left one step and.... you will be on the ledge!? To get back down, just walk right.