Niyat means your intention, motive.. this is something which you think or plan in your mind. Nope shetani khayal aana is not niyat it s waswasa(harmful misgivings, satans whispers. Shetani khayal lana is niyat
. waswasay mind mein aayn to unka gunah bhi nae hy. To avoid waswasa do Astaghfar.