B, electrical appliances should be cut off power supply, and then put out with a carbon dioxide fire extinguisher. Cutting off the power supply can prevent electric shock or fire from spreading further, and extinguishing with carbon dioxide fire extinguisher can prevent electrical appliances from exploding in water; Therefore, B is correct;
C, books in the library caught fire, immediately put out with foam extinguisher, foam extinguisher will spray a lot of water, damage the books; Therefore, c is incorrect;
D, one of the effective ways to put out forest fires is to cut down a tree before the fire spread route, because of the lack of combustible materials, the burning can be controlled; Therefore, d is correct;
So choose C.