What does Matthew 4:7 mean?

Matthew 4:7  KJV
Jesus said unto him, It is written again, Thou shalt not tempt the Lord thy God.

Matthew 4:7  NKJV
Jesus said to him, “It is written again, ‘You shall not tempt the LORD your God.'”

Matthew 4:7  MKJV
Jesus said to him, It is written again, “You shall not tempt [the] Lord your God.”

Matthew 4:7  KJV 2000
Jesus said unto him, It is written again, You shall not test the Lord your God.

Interlinear KJV

Jesus /Iesous/ said /phemi/ unto him, /autos/ It is written /grapho/ again, /palin/ Thou shalt /ekpeirazo/ not /ou/ tempt /ekpeirazo/ the Lord /kurios/ thy /sou/ God. /theos/

Albert Barnes’ Commentary

Jesus said unto him, It is written again – Again the Saviour replied to Satan by a text of Scripture – a passage which expressly forbade an act like this.

Thou shall not tempt the Lord thy God – This is quoted literally from De 6:16. The meaning is, thou shalt not try him; or, thou shalt not, by throwing thyself into voluntary and uncommanded dangers, appeal to God for protection, or trifle with the promises made to those who are thrown into danger by his providence. It is true, indeed, that God aids those of his people who are placed by him in trial or danger; but it is not true that the promise was meant to extend to those who wantonly provoke him and trifle with the promised help. Thus, Satan, artfully using and perverting Scripture, was met and repelled by Scripture rightly applied.

{f} “Thou shalt not tempt the Lord thy God”
De 6:16