recently i discovered doing otc that its possible to buy dirty bitcoins from someone and then when you try to sell it on an exchange the account gets frozen

does anyone know how to know if a btc is clean this ?
kind regards
Use a mixer that buys your dirty coins and gives you clean coins in return, for a small comission.