Let $f(n)$ be the maximum size of a complete graph that can have its edges colored with $n$ colors without triangles.
Notice that $f(n+1)\leq (n+1)(f(n))+1$. To see this pick an arbitrary vertex $v$ and consider the connections to the remaining $f(n+1)-1$ vertices. If we had $f(n+1)-1>(n+1)f(n)$ then by the pigeon-hole principle there would be a set with $f(n)+1$ vertices that are all connected to $v$ by the same color, this is a contradiction, because those $f(n)+1$ vertices would have to have all of their connections with only the remaining $n$ colors, and a triangle would be formed.
We have $f(2)=5\leq \lfloor e2!\rfloor $.
We now prove by induction that $f(n)\leq\lfloor en!\rfloor$
We just have to prove that $(n+1)\lfloor en!\rfloor+1\leq \lfloor e(n+1)!\rfloor$.
this is equivalent to proving that $(n+1)\lfloor en!\rfloor<\lfloor e(n+1)!\rfloor=\lfloor en!(n+1)\rfloor$
All we have to do is show that the fractional part of $en!$ is at least $\frac{1}{n+1}$ but the fractional part of $en!$ is $\frac{1}{n+1}+\frac{1}{(n+1)(n+2)}+\frac{1}{(n+1)(n+2)(n+3)}\dots$