This is a straight up regular common sense statutorily codified self defense.
Check it out:

Three Colorado teens were shot — one fatally — while trying to rob three men at gunpoint as they were moving into an Aurora apartment late Friday night.

Aurora police say that the three teenagers approached the three intended victims in the foyer of the apartment building and held them at gunpoint. The three movers were described as being in their 20s.