Then when he says, But if any man, he mentions the punishment in store for those who do evil works, saying: But if any man destroy the temple of God, him will God destroy. Now the temple of God is violated in two ways: in one way by false teaching, which does not build on the foundation but rather uproots it and destroys the edifice; hence, (Ez 13:19) says of false prophets: "You have profaned me among my people for handfuls of barley and for pieces of bread." In another way a person violates the temple of God by mortal sin, through which he destroys himself or someone else by his works or exa...mple; hence it says in Mal (2:11): "Judah has profaned the sanctuary of the Lord, which he loves." Therefore, any person who violates a spiritual temple of God or profanes it in any way deserves to be destroyed by God through eternal damnation; hence Mal (2:12) continues: "May the Lord cut off from the tents of Jacob and the man who does this, both the master and the disciple," and in Ps 12 (v. 3): "May the Lord cut off all flattering lips, the tongue that makes great boasts."
Then when he says, For the temple, he gives the reason for what he had said about the holiness of the temple. For a person who profanes a sacred thing commits a sacrilege; hence he deserves to be destroyed. For the temple of God is holy, and that temple you are, as he stated earlier and as stated in Ps 65 (v. 4) "Holy is your temple, wonderful in justice," and again in Ps 93 (v. 5): "Holiness befits thy house, O Lord." In a material temple, however, is a certain sacramental holiness, inasmuch as the temple is dedicated to divine worship; but in Christ's faithful is the holiness of grace, which they acquired by baptism: "You have been washed, you have been sanctified" 1 Cor (6:11).
Source: Commentary on 1 Corinthians