Satan offered to Jesus all the kingdoms of the world and their glory, if Jesus would do one act of worship to Satan.
Jesus did not deny that the kingdoms of the world belonged to Satan, & therefore it was a valid temptation.
Think about this. Satan tempted Jesus by offering him “all the kingdoms of the world.” Yet, would Satan’s offer have been a real temptation if Satan was not actually the ruler of these kingdoms?