It will have no motivation to prevent you from pulling the plug. Human level intelligence is not the same as animal instinct.
There has been some attempts at researching the question of how to design a intelligent system that is "corrigible" = willing to allow humans to change the goal it is set to optimize. This is unfortunately still an open question where no great solutions have been found that seem to be reliable when faced with a highly intelligent and capable AI system.
If you are interested in reading more, a few relevant search terms are "Off-switch game" and "corrigibility".
There are certainly ecological and mimetic niches where pro-social behaviors will improve fitness. But it’s also certain that anti-social (defect/dominate/parasite) behaviors will improve fitness in many niches.