What is the purpose of the spiritual armor?

It is first and foremost defensive, to resist the wiles of the devil.

Watch the Teaching: Is it scriptural to bind Satan?