These animals would have used the claws for both defending themselves from enemies and their preys.
(These animals; would have used; the claws; for both defending themselves from enemies and their preys) (both; defending; themselves; from enemies and their preys)
These animals both
would have used defending
the claws for both defending themselves from enemies and their preys
themselves from enemies and their preys