To further promote the modernization of agriculture and the prosperity of green industry, the analyses are made on the intensive level of agriculture by using spatial econometric model under the Internet of Things (IoT), and the optimal defense strategy is adopted for edge network equipment to ensure the security of agricultural information. Initially, the present work introduces the related concepts of agricultural intensive development and analyzes the important role of IoT in the development process of agricultural modernization. Next, it briefly explains the spatial econometric analysis method, introduces two basic spatial analysis models-spatial lag model (SLM) and spatial error model (SEM), and explains their principles in detail. Then, it signifies the characteristics of IoT and edge computing (EC) and designs the optimal defense strategy of edge network equipment from the perspective of IoT. Finally, the simulation experiment is carried out based on the edge network defense strategy, and the spatial econometric analysis is carried out by taking the agricultural intensive development of counties in a Chinese province as an example. The experimental results show that with the increase of the number of edge network devices, the optimal strategy of edge network defense can be adopted while consuming certain computing resources. The agricultural technology input and intensive level in the jurisdiction have high spatial correlation, so it is necessary to establish a spatial econometric model for analysis. Additionally, the statistics of SLM is higher than that of SEM, which shows that SLM can better reflect the technology investment and spatial correlation than SEM does. Both industrial and agricultural division of labor and agricultural production link division of labor can promote the level of intensification, among which the promotion of industrial and agricultural division of labor is not very significant, while the promotion of agricultural production link division of labor is very significant.