Bitcoin climbed to shy of $40,000 on Monday, after yet another weekend of price swings following tweets from Tesla boss Elon Musk, who fended off criticism over his market influence and said Tesla sold bitcoin but may resume transactions using it.