The Swans suffered a 2-1 defeat to Everton at the Liberty Stadium on Sunday and went down 1-0 at Chelsea on Boxing Day.
The losses have pulled down Michael Laudrup's side to 11th in the league table and Williams wants them to pick up maximum points against Aston Villa away from home this Saturday.
"We have lost the last two, so it's going to be a massive game for both teams," Swansea's captain is quoted as saying on the club's official website.
"It's very important - every game is in this league. They (Villa) lost to Palace at home on Boxing Day, and they will be desperate to make up for that particularly as they are at home again.
"There is no concern for us with the defeats and the gap between the teams below us in the table.
"Our aim is to put some distance and the teams below us. We don't want to get caught up in that because there aren't any teams that are really falling away - it's very close.
"Villa Park is a very tough place to play but we know we are capable of winning there and bouncing back from these back-to-back defeats."