French nationals are forbidden to fight for a foreign entity, or to train for a terrorist group like ISIS, and there is prison sentences for it, your acquaintances are just lecturing you on the french laws.