Layoffs are rising as an economic downturn looms. Employers must take care if they are to make their own redundancies.