but when ungoliant understood the purpose of melkor , she was torn between lust and great fear ; for she was loath to dare the perils of aman and the power of the dreadful lords , and she would not stir from her hiding .