It is not recommended for any but the most experienced. Use non-living edging. AND be careful to keep the spray guard close to the soil as you spray. Use a nozzle that produces large droplets that are less likely to drift. Pick a calm day.
Early morning can be calm-especially in areas subject to coastal breezes.
Use low pressure to keep droplet size large and less likely to drift. The higher the pressure, the more the drift. Remind yourself of the anguish and unhappiness that will result from an impulse to edge that 'little bit closer'. Use a dedicated sprayer for glyphosate. In the real world, we get distracted, we mean to 'do it later' and all the rest.