Complex sentence: The purpose of the collar is to protect the dog wearing it when it has to fight the wolves, the spikes providing both protection and can also be used as a weapon.
Split into simpler sentences: The purpose of the collar is to protect the dog wearing it when it has to fight the wolves. The spikes provide protection and can also be used as a weapon.