If you get a sour taste or a bad smell from the paneer and it has a slightly yellowish color, that means it has gone bad. Or if the paneer gets slimy, throw it out.