Anything done against faith or conscience is sinful.
"Commentary on Romans". Book by Thomas Aquinas. Chapter 14, 3,

Anything done against faith or conscience is sinful.