A dog with its mouth open is walking on a path on a garden which is next to a lake or a stream.
A dog walks near a garden.
The dog is "walking on a path on a garden". The path is not the garden, it is "on a garden." Therefore the path is "near a garden".
(-x)
(-x)