What is the best practice when plugging in on board boat chargers...to plug the extension cord into the wall or the boat first?

Thanks