Both men are incredibly strong-willed. If their interests clash, could Trump end up kicking Musk out? It wouldn’t be the first time. Remember, former Secretary of State Rex Tillerson found out he was fired through a tweet. So, if Musk’s interests ever conflict with Trump’s, could he face a similar fate?
for two deficult personality as trump and musk to work together, it's going to be purely based on set out rule that they will both endeavour to obey if not theirs going to be a fast conflict of interest playing out.
Musk is a sharp guy that wouldn't want a close proximity kind of relationship with Trump's administration. What he likely needs is just the freedom and minimal support to carry out his activity and business without serious interference and they might just be good so long as that's granted.