ANSWER:
Saying bismillah before sinning is an act of apostasy to some scholars as they say that a person saying this is asking Allah to facilitate for him in such a sin, which is mocking Allah.
Usually, people say it without intending it. If they know what they are saying over such haram things, this could easily mount to mocking Islam.