In terms of religious perspective, I don’t know if you will ever find it spelled out like that but indirectly, such as with the advice to cover hair, I have read text of hadith that does forbid or at least advises against certain things, though perhaps not directly mentioning that it could lead to some type of reaction from jinns, though don’t ask me for references as I wouldn’t have any readily available.