Iniquity, transgression and sin
In the Word three terms are used to refer to bad actions: transgression, iniquity, and sin. Transgression is the least bad. It means a violation of what is true in an external context, a violation of what is right and orderly. Iniquity is next and denotes acts that violate more interior truths. Sin is the worst. It is a violation of what is holy and righteous, a violation against the Lord. Sin is the deepest kind of evil. Regarding iniquity -- to be in charity, or live a life of charity is to live a life where the acts and thoughts that have top priority are those that have within them a love for the neighbor. Sometimes our love of self, our inborn desire to put ourselves first, is stronger than our charity and we do something for ourselves at the expense of our neighbor, or even do harm to our neighbor. Such an act, if our motive is selfish, is an iniquity.
(Reference: Arcana Coelestia 9156, 9965 [2-3])
Arcana Coelestia #1147
1147. 'And sons were born to them' means matters of doctrine deriving from those three. This is clear from the meaning of 'sons' in the internal sense as truths of faith, and also as falsities. Consequently matters of doctrine, both true and false, are meant, for such are the doctrines of Churches. That 'sons' has such a meaning, see above in 264, 489, 491, 533.