Contradiction with Proverbs 25:20
This verse speaks about doing things that are inappropriate for the occasion, which can contrast with John 18:18 where people were warming themselves due to the cold, a seemingly appropriate action for the situation.
Proverbs 25:20: [As] he that taketh away a garment in cold weather, [and as] vinegar upon nitre, so [is] he that singeth songs to an heavy heart.
Contradiction with Matthew 5:44
Matthew 5:44 instructs to love enemies and do good, which can contradict the context of John 18:18 where Peter is in the courtyard of those who have come to arrest Jesus, and there is a sense of tension and hostility.
Matthew 5:44: But I say unto you, Love your enemies, bless them that curse you, do good to them that hate you, and pray for them which despitefully use you, and persecute you;
Contradiction with Proverbs 14:16
This verse speaks about a wise man fearing and departing from evil, which could be seen in contrast to Peter, who stays among those potentially hostile to Jesus, despite knowing the potential danger.
Proverbs 14:16: A wise [man] feareth, and departeth from evil: but the fool rageth, and is confident.
Contradiction with 1 Thessalonians 5:22
Advises to abstain from all appearance of evil, which could be seen as contradictory if warming by the fire in the company of those hostile to Jesus is perceived as aligning with them.
1 Thessalonians 5:22: Abstain from all appearance of evil.