You crossed the line by using the F word and received an appropriate response. It is no different than cursing at a waiter and being asked to leave the premises. In this case the premises was the plane and the crew was sending you a very strong message that your type of behavior was not appropriate and will not be tolerated.
You play, you pay.