out in the country like where I am...someone breaking into a barn or stealing gas not really an immediate threat to your person or family. Just to motivate them to find another line of work. (It worked for my brother in the 80's)
But I can't imagine ever firing a warning shot inside my home or in public...for the safety of those around you it's best to remove the threat if it comes down to discharging the firearm.
Remember refuse to be a victim.
Way, Harmony, Spirit...the art of peace is within.