One thing that helps, though, is garden edging: a raised liner that goes around the edge of your garden beds. It creates clean lines and helps “hold in” the dirt, mulch, and leaves in the bed ...
However, the plastic edging quickly became brittle and easily broke when using an edge trimmer. Luckily, when the time came to edge a new flower bed, I found EcoBorder rubber landscape edging.