score:2
This page which describes The Thirty-one Planes of Existence places yakkhas immediately above the human realm:
Devas of the Four Great Kings (catumaharajika deva) -- Home of the gandhabbas, the celestial musicians, and the yakkhas, tree spirits of varying degrees of ethical purity. The latter are analogous to the goblins, trolls, and fairies of Western fairy tales.
See also this Wikipedia article,
Yaksha (Sanskrit यक्ष yakṣa, Pali yakkha) is the name of a broad class of nature-spirits, usually benevolent, who are caretakers of the natural treasures hidden in the earth and tree roots. They appear in Hindu, Jain and Buddhist texts. The feminine form of the word is yakṣī or Yakshini (yakṣiṇī).
In Hindu, Jain, and Buddhist texts, the yakṣa has a dual personality. On the one hand, a yakṣa may be an inoffensive nature-fairy, associated with woods and mountains; but there is also a darker version of the yakṣa, which is a kind of ghost (bhuta) that haunts the wilderness and waylays and devours travelers, similar to the rakṣasas.
Yakṣas in Buddhism -- In Buddhist literature, the yakṣa are the attendants of Vaiśravaṇa, the guardian of the northern quarter, a beneficent god who protects the righteous. The term also refers to the Twelve Heavenly Generals who guard Bhaiṣajyaguru, the Medicine Buddha.
See also this (long) definition of Yakkha (as well as this page which contain back-story to the Alavaka Sutta).
The idea of a dangerous guardian reminds me of this other topic about a "guardian" that seems "wrathful" and/or dangerous: What is a wrathful Buddha?