The first sentence is correct.
The second sentence wrong because you need to remove the word 'be'.
I can't work with you if you are going to against whatever I say.
You may also write " I cannot work with you if you disobey my order."
I hope that it can help you literally.