With the increase in the computation power of devices wireless communication has started adopting machine learning (ML) techniques. Intelligent reflecting surface (IRS) is a programmable device that can be used to control electromagnetic wave propagation by changing the electric and magnetic values of its surface. State-of-the-art ML especially on deep learning (DL)-based IRS-enhanced communication is an emerging topic. Yet while integrating IRS with other emerging technologies possibilities of adversarial data creaping is high. Threats to security, their mitigation, and complexes for AI-powered applications in next generation networks are continuously emerging. In this work the ability of an IRS enhanced wireless network in future-generation networks to prevent adversarial machinelearning attacks is studied. The artificial intelligence (AI) model is used to minimize the susceptibility of attacks using defense distillation mitigation technique. The outcome shows that the defensive distillation technique (DDT) increases the strength and performance by around 22% of the AI method under an adversarial attack.