Big toe nail has partially detached. Leave it alone or remove it?

The part . That is lifted up can be trimmed.....So that there is no free edge to get caught on a sock.....Sometimes, hat free edge can be filed.....If unsure see a foot doc.