That is precisely the style of thought that Jesus was trying to teach AGAINST.
with the advent of Christianity, God’s condemnation of homosexuality continued.—1 Corinthians 6:9, 10.
While many people have changed their view and others are undecided, the Bible’s viewpoint is crystal clear: “You will not have intercourse with a man as you would with a woman. This is a hateful thing,” states the Bible. (Leviticus 18:22, The New Jerusalem Bible) No apologies, no concessions, no ambiguity—homosexuality is detestable in God’s sight. For ancient Israelites living under the Mosaic Law, the penalty was death. (Leviticus 20:13)
we do not put people to death now , because we are not under the old way of doing things , but as we can see in corinthians it is still a no no , but now as Jesus taught ,it is love of neighbour, but for believers the praticing of wrong things would be out if we want to be inline with the christian way