Head to the lake in Sunyshore City, the same area where Jasmine hands you HM07 Waterfall. The Pokémon there sit at a level that makes them excellent targets for the final stretch toward 50.
Bring a Pokémon that knows Waterfall so you can reach the best spots, and stack a few Exp Share or Lucky Egg effects if you have them. The grind gets considerably shorter.