At a minimum get a quality surge unit, there not expensive.
Step it up a level to a quality ups, if nothing else it will allow an orderly shutdown.
If the power in your area is that bad consider a whole house surge unit.
Dear friends,
Is ups compulsory for a desktop pc? If power goes out and the pc not shut down properly, will this affect the components of the pc? If power goes out frequently (e.g. 1-4 times a day), provided that the said pc does not have ups or has one with insufficient backup for the pc (i.e., dying battery) to be shut down properly, will this impose adverse affects on the components (i.e. hardware - motherboard, processor, hdd etc) of the pc? Will the pc components die out quickly and malfunction? Will this affect the overall performance of the pc?
Is there any ups alternative? Is there any electrical device that could be used to protect pc from power surge, high/low voltage and other possible electrical/power problems?
Thanks in advance.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic