A British cave diver who helped rescue 12 boys and their coach in northern Thailand says heā€™s considering legal action against billionaire entrepreneur Elon Musk who called him a pedophile online.

Vern Unsworth, a British cave explorer based in Thailand, helped rescuers navigate the complex Tham Luang cave system where the boys and their coach were trapped for more than two weeks beginning in June.

On Sunday, Musk unleashed on Unsworth, writing on Twitter that he intended to build the child-size submarine he offered to rescuers for the Thailand mission that they rejected.

ā€œWe will make one of the mini-sub/pod going all the way to Cave 5 no problemo [sic],ā€ he wrote in a tweet that has since been deleted. ā€œSorry pedo guy, you really did ask for it.ā€

The founder and CEO of tech giants Tesla and SpaceX didnā€™t provide any further explanation or context for the accusation. Itā€™s unclear what provoked the outburst, but earlier this month Unsworth spoke critically of Muskā€™s miniature submarine design in an interview with CNN.

ā€œIt just had absolutely no chance of working. He had no conception of what the cave passage was like,ā€ he said. ā€œThe submarine, I believe, was about five-foot-six long, rigid, so it wouldn't have gone round corners or round any obstacles.ā€

Unsworth went on to say that Muskā€™s offer to help the mission was simply a ā€œPR stuntā€ and that he could ā€œstick his submarine where it hurts.ā€

Muskā€™s ā€œpedoā€ tweet attracted immediate backlash with many users calling him out for hurling serious and unfounded accusations for all of his 22 million followers to see.

In response to one tweet, the American businessman wrote: ā€œBet ya a signed dollar itā€™s true.ā€

No evidence has come to light to substantiate Muskā€™s pedophilia accusation.

In an interview with Australian broadcaster Nine Network, Unsworth said he was considering legal action against Musk for the comment.