Catch them and lock them up.
What? Those things are ‘necessities!’ You can’t arrest or prosecute those people for stealing necessities! /sarc just in case.