Jennifer Lawrence has claimed she was once "punished" by a producer for standing up for herself when a director "said something f***ed up" to her.