Just because an army takes over a territory does not make the occupation legitimate. By your logic, Hitler's invasion of Poland would have been perfectly legitimate, because he "wooped some jewish ass".