How do I prevent players from editing armor stands?

Use the DisabledSlots tag. To make an armor stand that players cannot change, use the tag {DisabledSlots:2096896}. Note that the number 2096896 is the sum of the flag numbers.

Refer to this post on Reddit that lists out the flag numbers for slots that can be disabled. To use multiple flags, use the sum of the desired flag numbers.