Friendly Fire false command does not affect entities
Even when all entities are in the same team and friendly fire is set to false, mobs still damage the player (primed TNT does not, but only if placed. Summoned primedTnt that is joined into the same team as the player still damages the player).