Агни-пурана

In the earliest layer of Vedic texts Agni, Indra and other gods are also called Asuras, or "lords" of their respective domains, knowledge and abilities. In later Vedic and post-Vedic texts, usually benevolent gods are called Devas, while malevolent Asuras compete against these Devas and are considered "enemy of the gods".

For example, Book 1 of Rig Veda describes Savitr (Vedic solar deity) as an Asura who is a "kind leader" (1.35.10). In Rigvedic times, the Asuras were not yet demonised. Moreover, some of the well accepted gods in today's Hinduism, were asuras. Mitra and Varuna are two of them. (WP, "Rigvedic deities")

A hymn of the Rigveda further states "Devav asura" (Asuras who have become Devas), and contrasts it with "Asura adevah" (Asuras who are not Devas). In Hindu mythology, each Asura and Deva emerges from the same father (Prajapati), share the same residence (Loka), eat together the same food and drinks (Soma), and have innate potential, knowledge and special powers. Their choices and actions make the difference. (WP, "Asura")

Devav asura - Asuras who have become Devas

Asura adevah - Asuras who are not Devas

Thus, the divisions between gods, devas, and antigods, (titans, asuras, or demons) were not clear-cut in the olden days, and results linger on despite much demonisation of some beings we hear of.

=Churning=

When gods and antigods cooperated to churn the Ocean of Milk (the Milky Way) on the back of Visnu in the form of a tortoise, at first poison came out as they were churning. ... At last came the originator of Ayurveda, or medicine, out of the churning. He had a pot of amrita (life-giving drink) in his hands. Half of the amrita was given to the gods and half to the antigods.

But Vishnu did not want them to have it, and quickly became a beautiful woman, so enchanting that the charmed demons said, "Pretty lady," they said, "Take the amrita and serve it to us. Marry us."

Vishnu took the amrita, but served it to the gods instead of the demons. '''Only one asura, Rahu got some of it. He turned himself into the shape of the moon-god and got some of the amrita to drink'''. However, the Sun and Moon saw what happened, and told Vishnu of it. As a result, Visnu chopped off the head of Rahu with a sword. But Rahu had got amrita, and could not die. [This part of the myth is anchored in Vedic astrology about Rahu and Ketu. They are the Moon's Nodes in constellations, and so on, and a cycle around the Zodiak takes about 18 1/2 years.]

Anyway, the gods became more powerful than the demons, won over the demons and got heaven back from them.

=Teachings=

There is superior knowledge, through which the Brahman is known - and knowledge inferior to that, about the Rigveda and so on. (1.9, 15-17)

Inferior knowledge is represented by the Rigveda, Tajurveda, Selmaveda, Atharvaveda, allied supplementary texts on phonetics, rules governing ritualsm, grammar, etymology, astronomy, metrics, interpretations of Vedic rituals, law-books), Puranas, logical philosophical systems, medical science, music learning, and polity. (1.9, 15-17)

Crossing the ocean of mundane existence makes one omniscient. (1.12)