One example of locke's view is how Government handle affairs.
IT is perfectly acceptable for a certain government to make protective millitary actions to prevent their citizens from danger.
But using military might to oppress another country for reasons such as economic resource or gaining control of foreign. influence is unacceptable