The serpent in Eden is said to be more "subtle" or "clever" than the beasts of the field. We are warned elsewhere that he disguises himself as a "messenger of light":
2Co 11:13-15 NKJV - 13 For such are false apostles, deceitful workers, transforming themselves into apostles of Christ. 14 And no wonder! For Satan himself transforms himself into an angel of light. 15 Therefore it is no great thing if his ministers also transform themselves into ministers of righteousness, whose end will be according to their works.
"Prince" Charles Spurgeon comments on this passage and shows the almost imperceptible change that the devil makes to the scripture in order to entrap the Messiah:
Matthew 4:5-6 Then the devil taketh him up into the holy city, and setteth him on a pinnacle of the temple. And saith unto him, If thou be the Son of God, cast thyself down: for it is written,—
Here he plays with the Word of God, for the devil can quote Scripture when it suits his purpose to do so: “It is written,” —
Matthew 4:6. He shall give his angels charge concerning thee: and in their hands they shall bear thee up, lest at any time thou dash thy foot against a stone.
The devil did not quote correctly from Psalms 91:11-12; he left out the most important words: “He shall give his angels charge over thee, to keep thee in all thy ways,” but it was not Christ’s way to cast himself down from the pinnacle of the temple. Jesus therefore answered Satan’s misquotation with a true quotation.
Matthew 4:7. Jesus said unto him, It is written again, Thou shalt not tempt the Lord thy God.
I know some people, who earn their living in employments which are very hazardous to their immortal souls. They are in the midst of evil, yet they tell me that God can keep them in safety there. I know that he can, but I also know that we have no right to go, voluntarily, where we are surrounded by temptation. If your calling is the wrong one, and you are continually tempted in it, you may not presume upon the goodness of God to keep you, for it is your business to get as far as you can from that which will lead you into sin. God does not put his servants on the pinnacle of the temple; it is the devil who puts them there; and if they ever are there, the best thing they can do is to get down as quickly and as safely as they can; but they must not cast themselves down, they must look to him who alone can bring them down safely. With some professors, presumption is a very common sin. They will go into worldly amusements and all sorts of frivolities, and say, “Oh, we can be Christians, and yet go there!” Can you? It may be that you can be hypocrites, and go there; that is far easier than going there as Christians.
So to answer the question, the devil did not, in fact, speak the truth to Jesus but rather attempted to sabotage the scriptures to deceive.
"Scripture twisting" is putting "spin" on them so that they do not faithfully represent what the author is saying and is the preoccupation of many:
Psa 56:5 NKJV - 5 All day they twist my words; All their thoughts are against me for evil.
2Pe 3:16 NKJV - 16 as also in all his epistles, speaking in them of these things, in which are some things hard to understand, which untaught and unstable people twist to their own destruction, as they do also the rest of the Scriptures.
When legendary sinner W. C. Fields was asked why he, a drunk and a womanizer was reading the Bible he responded, "I'm looking for loopholes"! Well spoken!