The Bible does not give us the answer, but the question assumes Satan knew or believed it would lead to mankind’s salvation. Had he known that fact he would likely have acted differently. While his ultimate destruction is clearly shown in Revelation 20, the New Testament had yet to be completed at the time of the crucifixion. He was not privy to God's plan and possibly viewed the crucifixion as a total victory, and therefore a failure on Jesus' part for not saving himself and proclaiming himself a king as the crowds expected. Cutting off this Messiah before he had a chance to do anything significant might have seemed like the best way to thwart mankind's salvation.
While the Old Testament is full of prophecies of Jesus' suffering and the events leading up to his death, even the learned Pharisees missed the import of what Jesus was doing. For example, while Jesus was on the cross, priests and Pharisees taunted him in Matthew 27:43 by quoting Psalm 22:8:
Matthew 27:41-43 (NASB1995) 41In the same way the chief priests also, along with the scribes and elders, were mocking him and saying, 42"He saved others; He cannot save Himself. He is the King of Israel; let Him now come down from the cross, and we will believe in Him. 43 HE TRUSTS IN GOD; LET GOD RESCUE Him now, IF HE DELIGHTS IN HIM; for he said, 'I am the Son of God.'"
Not realizing its context, they themselves were fulfilling prophecy and ridiculing their own Savior.
Psalm 22:6-8 (NASB1995) 6But I am a worm and not a man, a reproach of men and despised by the people. 7All who see me sneer at me; they separate with the lip, they wag the head, saying, 8"Commit yourself to the LORD; let Him deliver him; Let Him rescue him, because He delights in him."
Perhaps even today, in his arrogance, Satan thinks he can somehow still thwart God's divine plan. He may think he can degrade enough humans away from God that they would be lost to second death and unable to walk up the highway of holiness in God's future kingdom. He might consider this a sick kind of victory, wanting to bring as many away from God as possible.