Demons who are decidedly lost, awakened in evil, exhaust and extinguish themselves within the inferior astral dimension due to karma. They are prisoners there by the will of Allah.
Those demons that have physical bodies still have an opportunity to change. Such demons, whether awakened in evil or not, by grace of divinity can experience temporary experiences in the superior astral region if they demonstrate that they can change and are willing to do so.
However, many demons with physical bodies chose the path of suffering in the abyss; therefore they lose all opportunities as their hearts harden. Truly, divinity has put a seal on their hearts for their disobedience!
The Law is the Law, and divinity fulfills it. Therefore if the karma is such that such demons must be imprisoned, it is fulfilled by the holy angels, the angels of war and power led by Samael and Michael.
Yet we, who are demons to a relative degree, and who are not awakened in evil, continue to be guided by the prophets and can be given extra help, spiritual experiences in the superior worlds!
For thirty years I sought God. But when I looked carefully I found that in reality God was the seeker and I the sought. -Bayazid al-Bastami