Grass Paint Constraint

Hello TM people.

Firstly i’m pretty new to this software so apologies if this is noob question but is there a way to constrain where grass is painted? For example I have some grass verges in an image I am working on that I would like to paint grass 2 on to but its spilling out over the kerb and adjacent road.