No, it is never a good idea to do something if you are not sure if it is legal. It is best to research the laws and regulations before doing anything that may be questionable.
Are you allowed to do something if you are not sure if it's legal?