PM: Government ‘won’t crumple’ in face of poor by-election results