When I see people leave a cart in the wrong place I pick it up and put it where it belongs. Hopefully they'll be watching me. Sometimes you can only do what you can do in that moment.
Why not ask them to do it? No need to be confrontational. "Hey, could you put that in the rack just down the street? It gets in the way of disabled people, families with strollers, the elderly... Thanks."