 Resonance effect on the carboxylic group shifts the CO double bond to a hydroxy group.The carboxylic group will thus function as a hydroxyl group that will cause a large allylic strain to form and cancel the stabilization effects of the extended conjugation.This is very common in enolization reactions and can be viewed in the figure below under "Acidic Conditions."