How can I trim the sides without them dying?
Mifflin County Pennsylvania pruning
What type of plant are you trying to "trim"? I cannot advise you unless I know the species that you wish to prune.
A picture of the particular plant would also be helpful.