NEW YORK/LONDON—Makers of everyday staples from Pampers diapers to Dove soap are walking a fine line by continuing to sell their products in Russia, as pressure grows on multinational companies to take a stand against Russia’s recent invasion of Ukraine. McDonald’s Corp. said on Tuesday it was closing its restaurants in Russia, including its iconic Pushkin Square location in Moscow. PepsiCo Inc., Coca-Cola Co., and Starbucks Corp. also stopped sales of their best-known products in Russia. These multinational companies have lagged some financial services firms, oil and gas companies, and retailers that withdrew entirely from Russia. The consumer products companies argue that everyday people in Russia rely on their products. Procter & Gamble Co. and Unilever Plc. said this week they are continuing to sell essential products in Russia, but are ending any new capital investments and are no longer advertising in the country. Unilever has suspended all imports and …