Matthew 24:40 is not the rapture, it is the second coming. Look at it's context. It is comparing it to the flood where the unrighteous is removed from the earth. In the same way, when the Lord returns to the earth, the unbelievers will be removed first, then the Millennium rule of Christ will begin.