Q:

If your employer tells you to do something against the law and you refuse can they fire you

Answer

If your employer requests you perform an illegal activity, you have every right to refuse to do so. They can not legally fire you.